Reputation: 33880
I vaguely recall debugging client side JavaScript code inside of Visual Studio many years ago (this was before browsers has Dev Tools, and you had just the Firebug extension for Firefox), but more recently when I try it, I cannot break into the script inside of Visual Studio and I have to use the debugger in Dev Tools inside the browsers.
When I set a breakpoint within Visual Studio and run my application, the application does not honor the breakpoint and just keeps running. When I look at the breakpoint in the code editor, I see a message that reads:
The breakpoint will not currently be hit. No symbols have been loaded for this document.
I am using Firefox 62.0.3 on 64-bit Windows.
My question is:
Just like the "Chrome Debugger" extension for Visual Studio Code allows for the JavaScript debugging experience inside Code, for both client and server side JavaScript, is there something that I can use with Visual Studio Community 2017 to debug JavaScript, and also support source maps?
Also, this is not very important, but since I have not been able to debug JavaScript inside Visual Studio for quite some time now, I am beginning to doubt whether I actually debugged it in Visual Studio or was it just a dream, or a memory gone wrong. But I am pretty sure, 100% that I did. But still, I don't know. I know that I did, but sometimes, I just want to make sure that it wasn't just me.
Upvotes: 0
Views: 609
Reputation: 21
Adding a few more updates to the previous answer -
Upvotes: 2
Reputation: 33880
The short answer is:
The JavaScript debugging experience for Visual Studio is available only for debugging scripts inside Chrome and Internet Explorer. I am not sure if it is available with Microsoft Edge. And since Internet Explorer is pretty much out of use, the only popular browser that this experience is surely available for is Chrome.
So, make sure you select Chrome from the list of browsers in the toolbar when launching your debug session in Visual Studio.
A few things to make sure you're doing before you start debugging:
Upvotes: 0
Reputation: 847
Yes options are there to enable debugging JavaScript in visual studio 2017 too. 1. Go to tools and then select options 2. Then by click on the debugging tag you can able to see many check box options. 3. In that check whether your visual studio is enable with JavaScript debugging options provided.
By enabling this you can able to use Client Side JavaScript debugging on Visual Studio 2017
Upvotes: 1