How to debug (only) JavaScript in Visual Studio?

后端 未结 5 577
梦如初夏
梦如初夏 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:35

    The debugger should automatically attach to the browser with Visual Studio 2012. You can use the debugger keyword to halt at a certain point in the application or use the breakpoints directly inside VS.

    You can also detatch the default debugger in Visual Studio and use the Developer Tools which come pre loaded with Internet Explorer or FireBug etc.

    To do this goto Visual Studio -> Debug -> Detatch All and then click Start debugging in Internet Explorer. You can then set breakpoints at this level. enter image description here

提交回复
热议问题