ARTICLE

Debug Javascript in VS2010

Posted by Shankey Articles | Visual Studio 2010 May 02, 2011
Here you will see how to debug javascript in VS 2010.
Reader Level:

Step 1: Visual Studio 2010 >> Tools >> Options

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

Javascript1.gif

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

Javascript2.gif

Step 2: Change Config file

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

Javascript3.gif

Step 3: Set default browser to IE

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

Javascript4.gif

Javascript5.gif

Step 4: 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).

Javascript6.gif

erver'>
Login to add your contents and source code to this article
post comment
     

Thanks for the appreciation, I will check and post this soon.

Posted by Shankey May 04, 2011

Can we do it in VS 2008

Posted by Mayur Gujrathi May 04, 2011
COMMENT USING
PREMIUM SPONSORS
DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and add new content to existing PDF documents from within your applications.
Get Career Advice from Experts
SPONSORED BY
  • PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.