How to debug JavaScript in Visual Studio?

JavascriptWeb DevelopmentFront End Technology

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 06:47:21