I cannot get breakpoints to work on my TypeScript files inside visual studio.
When I run in debug mode the breakpoint is disabled and on hovering over it I see the error message:
The breakpoint will not currently be hit. No symbols have been loaded for this document
I have Googled around the issue and I am aware of a couple of other SO questions with similar symptoms but my issue is not a duplicate of either of the ones I have found:
- this one suggests moving a line from the .csproj file to a different location: There was no such similar line in my own .csproj file. I tried adding it but there was no difference in behaviour
- this (and many others on SO, GitHub and elsewhere) suggest the problem lies with sourcemaps not getting generated. I have this option set in the project properties, the sourcemaps definitely get generated because if I debug in Chrome I can see them there so this is a dead-end too.
I can see nothing untoward in the build output either.
How can I get TypeScript breakpoints to work inside Visual Studio?
Version info:
- VS2015 update 2
- Typescript for Microsoft Visual Studio Version 1.8.29.0
- Tried in various browsers including IE11
- ASP.NET Web Application using the .Net Framework 4.5.2
My Options > Debugging > Symbol Settings: