How to debug JavaScript


Javascript debugging is best and great feature in Visual Studio 2008. We can do it easily and also check js.

I have not any screen shot nor live url about it but some step that can help you to debug javascript.

Steps are

(1) First of all run you web application without debugging mode. Here your application must be any javascript code.:)

(2) Run your application in IE Browser(must).

(3) Now put debugging point on javascript

(4) Now from Visual Studio Select -> Tools -> Attach To Process

(5) From there you can see there are more than one process for iexplore.exe.
from that all process select only that iexplore.exe which one show
Attach to : Automatic:ScriptCode

(6) Puch button Attach.
(7) Now your javascript debugging is start.

Here you can doing another way also.
But for that you have to set ie setting like desable javascript debuggin etc..



No responses found. Be the first to comment...

  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name: