Malcolm
Malcolm

Reputation: 12864

Getting javascript debugging working in VS2010 web developer express

I have downloaded the VS2010 Web Devleoper Express to learn MVC3.

I have created a javascript file and added it to my page and tried to set a breakpoint on it for debugging in VS.

I have the web.config setting and project properties setting set but debugging does not work.

I have googled and called MS support but cant get an answer.

Would you have any ideas or lead me to an answer.

And no I do not want to use Firebug I want to use VS becuase it should work.

Malcolm

Upvotes: 1

Views: 3754

Answers (4)

Lee Smith
Lee Smith

Reputation: 6747

Posted by Microsoft on 28/07/2011 at 16:00

Thanks for your feedback. Currently JS breakpoint mapping to source files in MVC is not supported, and is out of scope for our next release. However we are investigating possible solutions for future release

See: http://connect.microsoft.com/VisualStudio/feedback/details/652428/mvc-3-mvc-2-debug-ignores-javascript-breakpoints

Upvotes: 1

Luke Kim
Luke Kim

Reputation: 1056

How are you starting to debug? E.g. are you pressing F5?

If you are, make sure you have set your start page (Right-Click file, Set As Start Page) to the page you want to debug.

Is the BP hollow or solid red?

Upvotes: 0

activebiz
activebiz

Reputation: 6230

One way you can make sure you will hit the break point is to use debugger(); method. for e.g.

function foo() { debugger(); ///Stuff }

This will force your visual studio (weather your Studio is in debug mode or not) to give you option to go into debug mode.

Upvotes: 0

Adeel
Adeel

Reputation: 19228

I think you have not enabled script debugging in IE. Follow the instructions in this article exactly.

Upvotes: 0

Related Questions