停止正在执行的当前代码行的调试器 [英] Stop debugger on current line of code being executed

查看:118
本文介绍了停止正在执行的当前代码行的调试器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以在这里我试图调试这个程序永远运行的问题,我无法确定在代码中放置断点的位置,因为有一百万个事件触发。



在visual studio中有没有办法只停止正在执行的当前代码行,而不设置断点?

解决方案

是的,点击工具栏上的暂停按钮,它将在当前行中断。



暂停按钮不可见是去调试 - >打破所有


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?

解决方案

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.

这篇关于停止正在执行的当前代码行的调试器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆