currently setup vs 2008 and been doing "PURE" javascript debugging with eclipse... so i wanted to give vs 2008 a try and debugging "PURE" javascript... I have vs2008 sp1 and i have unchecked the "disable ie client sscripting" in the IE8...
I now set my breakpoint (in a .js file) and Attach process. and mark Internet explorer ... but problem is .. it says it will never be hit...
anyway i tested it .. i load up my html in the browser WHICH I KNOW calls my js file.. but nothing happens, am i missing something?
-
I know this doesn't answer your main question, but if you've not tried Firebug for firefox, you may want to try it. It's a great JS debugger, works every time, and results in a quicker work process as you don't have to attach to a process all the time.Nik– Nik2009年05月13日 16:16:55 +00:00Commented May 13, 2009 at 16:16
-
Thank you.. yes i do use firebug now and again.. i just wanted a good environment like i use for c# to do javascript debugging...mark smith– mark smith2009年05月14日 13:06:49 +00:00Commented May 14, 2009 at 13:06
4 Answers 4
Make sure you change Attach To to Script from the default which is Managed Code. This got me a few times.
1 Comment
Write
debugger;
into your script where you want to start debugging. and run your application. When the script reached it will stop and ask you if you want to debug. Then choose VS.NET 2008 at the list.
Comments
Check out the script explorer in Visual Studio 2008. When you F5 your app VS will list all the scripts inside your page inside the script explorer. Once running you can set breakpoints on the js code.
Comments
In ie8 you have now a powerfull javascript debugger in ie dev tools bar integrated.
Comments
Explore related questions
See similar questions with these tags.