How to debug (only) JavaScript in Visual Studio?

后端 未结 5 586
梦如初夏
梦如初夏 2020-12-05 02:01

I\'m developing a webapplication (asp.net mvc 4) with Microsoft Visual Studio 2012, and as the solution is getting bigger, the debug is getting slower.

Need to know

5条回答
  •  被撕碎了的回忆
    2020-12-05 02:39

    First open Visual studio ..select your project in solution explorer..Right click and choose option "browse with" then set IE as default browser.

    enter image description here Now open IE ..go to
    Tools >> Internet option >> Advance>> uncheck the checkbox having "Disable Script Debugging (Internet Explorer). and then click Apply and OK and you are done ..

    Now you can set breakpoints in your JS file and then hit the debug button in VS..

    enter image description here

    EDIT:- For asp.net web application right click on the page which is your startup page(say default.aspx) and perform the same steps. :)

提交回复
热议问题