![]() In browsers which support source maps (Chrome Canary, and presumably recent Firefox builds, since they are a Mozilla idea), you can then debug your. To summarise (very briefly) what Aaron says, you use the -sourcemap switch on the compiler to generate a *.js.map file in the same directory as your source. Aaron Powell has blogged about getting breakpoints working in Chrome Canary just today. You may not be able to debug in VS, but you can in some browsers. Original Answer for prior versions of VS: Visual Studio Code supports TypeScript debugging through its built-in Node.js debugger and also through extensions like Debugger for Chrome to support client-side TypeScript debugging. It is also possible to debug typescript in Visual Studio Code: There are also additional resources on Debugging Typescript / Asp.NET Core in Visual Studio. You can set and hit breakpoints, attach the debugger, inspect variables, view the call stack, and use other debugging features. You can debug JavaScript and TypeScript code using Visual Studio. Debugging Typescript directly in Visual Studio has been possible since VS2017.
0 Comments
Leave a Reply. |