Tuesday, February 13, 2007

Debugging Javascript in Visual Studio

I got this from a colleague:
  1. Open Microsoft Internet Explorer.
  2. On the Tools menu, click Internet Options.
  3. On the Advanced tab, locate the Browsing section, and uncheck the Disable script debugging check box, and then click OK.
  4. Close Internet Explorer.
  5. In your JavasSript function add the keyword debugger . This causes VS.NET to switch to debug mode when it runs that line.
EX : -
function OnLookup()
var xr = new XMLHttpRequest();
6. Run your ASP.Net application in debug mode.


Blogger Zainul said...

Excellent work. explained in easy english. thank you

10:57 AM  

Post a Comment

<< Home