How to debug javascript in visual studio

kudvenkat
Youtube
Related Topic
:- Strong debugging skills Code Debugging Javascript

Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2014/10/how-to-debug-javascript-in-visual-studio.html Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our YouTube channel. Hope you can help. https://www.youtube.com/channel/UC7sEwIXM_YfAMyonQCrGfWA/?sub_confirmation=1 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.

Comments