0

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?

asked May 13, 2009 at 16:11
2
  • 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. Commented 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... Commented May 14, 2009 at 13:06

4 Answers 4

2

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

answered May 13, 2009 at 16:18
Sign up to request clarification or add additional context in comments.

1 Comment

Yes thank you... also i noticed when i have 1 page of ie open . there is actually 2 processes, i needed to attach to the process that actually didn't have the name of page - a bit strnage... but its all working,..
0

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.

answered May 13, 2009 at 16:24

Comments

0

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.

answered May 13, 2009 at 16:28

Comments

0

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

answered Aug 20, 2009 at 13:03

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.