Stop debugger on current line of code being executed

谁说胖子不能爱 提交于 2019-12-18 14:54:27

问题


So here I am trying to debug this issue where the program takes forever to run and I can't figure out where to put the breakpoint in code because there are 1 million events firing.

Is there a way in visual studio to just stop on the current line of code being executed without setting a breakpoint?


回答1:


Yes, hit the Pause button on the toolbar and it will break at the current line.

Another option if the Pause button is not visible is to go to Debug -> Break All.



来源:https://stackoverflow.com/questions/1214355/stop-debugger-on-current-line-of-code-being-executed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!