.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Articles >> ASP.NET >> Post New Resource Bookmark and Share   

 Subscribe to Articles

Debug JavaScript in VS2010 Tutorial

Posted By:shankey       Posted Date: April 25, 2011    Points: 200    Category: ASP.NET    URL: http://www.dotnetspark.com  

In this tutorialI will show how to Debug JavaScript in Visual Studio 2010
 

Step1: Visual Studio 2010 >> Tools >> Options

The first step is to open visual studio 2010. Select "Tools" menu and select "Options" item from it



From the Options dialog box expand Debugging node from the left tree view and then select Just-In-Time node listed under the Debugging node.

In the right pane check all the three options if they are unchecked.


·  Managed
·  Native
·  Script



Step2: Change Config file

In the config file please ensure that the "compilation"  tag should have "debug" attribute set to "true". As shown below.



Step3: Set default browser to IE

In visual studio, Right click the .aspx page and then set IE as default browser.





Step4: Place the breakpoint in javascript and press F5

Now it's the time to place breakpoint in javascript and then press F5 (visual studio should be attached to the page).
Bingggggggooooooooooooo..



 Subscribe to Articles

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend