Reputation: 12864
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
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
Upvotes: 1
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
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