mark smith
mark smith

Reputation: 20897

debugging with vs 2008?

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?

Upvotes: 0

Views: 199

Answers (4)

Cédric Boivin
Cédric Boivin

Reputation: 11341

In ie8 you have now a powerfull javascript debugger in ie dev tools bar integrated.

Upvotes: 0

Dav Evans
Dav Evans

Reputation: 4071

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.

Upvotes: 0

Canavar
Canavar

Reputation: 48088

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.

Upvotes: 0

Geoff
Geoff

Reputation: 9340

Make sure you change Attach To to Script from the default which is Managed Code. This got me a few times.

Upvotes: 2

Related Questions