I have a ASP.NET Core project which uses TypeScript.
Is it possible to debug TypeScript code in Visual Studio?
TypeScript is great for writing client-side code as well as Node. js applications and you can debug client-side source code with the built-in Edge and Chrome debugger.
I was attempting to convert the dotnetcore ReactRedux template to Typescript and could not get breakpoints to hit my typescript files.
I was able to determine that in your tsconfig.json
file you need to have the options inlineSourceMap:true
and inlineSources:true
set.
Make sure you enable browser link in order to see TS break points being hit. The option is the blue arrow circle to the right of the browser selection drop-down in VS2017 and it seems to default to disabled.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With