This article translates the JavaScript Tutorial playlist of up master Kudvenkat on YouTube
SOURCE Address here:
https://www.youtube.com/watch?v=PMsVM7rjupU&list=PL6n9fhu94yhUA99nOsJkKXBqokT3MBK0b
This video we discuss how to debug JavaScript in Visual Studio
The steps are as follows:
1. In Visual Studio, right-click a Web Page table and select "Browse with ..." in the pop-up menu. Options
2. In the "Browse with" window,
A) Select "Internet Explorer"
b) Click on the "Set as Default" button
c) Finally click on the "Browse" button
3. Close the IE browser window to open the run Visual Studio project in debug mode
4. In Visual Studio, add a breakpoint to the JavaScript function you want to debug
So far, running the behavior in IE (for example, clicking a button or changing an option under DropDownList) will run the JavaScript function. JavaScript runs to the breakpoint location. We can use the F10 and F11 keys to control the process.
We've been able to use watch in Visual Studio, Quick Watch, and immediate windows.
If you use a browser other than IE browser, then the above steps are not available in Visual Studio 2008.
How to debug JavaScript in Visual Studio