How to debug JavaScript in Visual Studio?


To debug JavaScript in Visual Studio, follow the below-given steps −

  • Open Visual Studio
  • Select your project to be debugged in Solution Explorer.
  • Right Click and select Browse With, and set a default browser.

Now, go to START and type Internet Options.

Above, uncheck both the options for Disable script debugging.

Click Apply, and then Ok.

Now set breakpoints in your JS file.

After that press the debug button in Visual Studio.

Updated on: 23-Jun-2020

2K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements