Hosted by Dailymotion. For legal issues report at the Copyright Center, report us on DMC, or use the Instant Removal tool.
How to debug javascript in visual studio
Description
How to debug javascript in visual studio
In this video we will discuss, How to debug JavaScript in Visual Studio
Here are the steps
1. In Visual Studio, right click on a web form and select "Browse With..." option from the context menu
2. In the "Browse With" window,
a) select "Internet Explorer"
b) Click "Set as Default" button
c) Finally click "Browse" button
3. Close the internet explorer window that opens and run the visual studio project in Debug Mode.
4. In Visual Studio, throw a break point on the JavaScript function that you want to debug.
At this point, in the internet explorer perform the action (i.e clicking on button or changing a selection in the DropDownList) that calls the JavaScript function. The JavaScript execution should stop at the breakpoint and we should be able to step over and step into code using F10 and F11 keys respectively.
At this point we should also be able to use watch, quick watch and immediate windows in visual studio.
This approach will not work in visual studio 2008, if you are using any other browser apart from Internet Explorer.
More from User
JavaScript Basics
Kudvenkat
Where should the script tag be placed in html
Kudvenkat
Inline vs external javascript
Kudvenkat
Tools for learning JavaScript
Kudvenkat
How to debug javascript in visual studio
Kudvenkat
Disadvantages of JavaScript
Kudvenkat
Related Videos
Visual Basic visual studio 2008 -1-52 Debugging
tgx700
How to use javascript object property example in asp.net || visual studio 2015 #javascript tutorials 10
AspDotNet Tutorials
How to use javascript object method example in asp.net || visual studio 2015 # javascript tutorials 11
AspDotNet Tutorials
How to use javascript try & catch example in asp.net || visual studio 2015 #javascript tutorials 8
AspDotNet Tutorials
How to use javascript statement example in asp.net || visual studio 2015 #javascript tutorials 2
AspDotNet Tutorials
How to use javascript validation example in asp.net || visual studio 2015 #javascript tutorials 9
AspDotNet Tutorials