JavaScript Debugging in Visual Studio 2017

We can now debug JavaScript files from the visual studio ide, and don’t need to debug from browser’s developer tools.

To enable the debugging, go to Tools–>Options–>Debugging then Check the below checkbox.

0

In your JavaScript file, set a debugging breakpoint as you do in C# application development.

Now if you fire-up the application and execute the according code, your breakpoint should be looks like below.

1

We can even do conditional debugging as we tend to do in normal .NET Development.

2

3

Thanks for reading. Hope this helps.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s