调试时可以永久删除断点吗?
调试时,对断点的更改仅在该调试会话中保留。一旦调试器分离,断点就会恢复到“调试前”状态。
我可以理解这有时很有用,并理解为什么它默认这样。
但是 - 有谁知道是否有一个选项可以禁用此功能(在 VS2010 中),这样如果我在调试期间删除/禁用/添加断点,更改将在下次开始调试时持续存在?
When debugging, changes to breakpoints are only persisted for that debugging session. Once the debugger detaches the breakpoints are restored to their 'pre-debug' state.
I can appreciate this is sometimes useful, and understand why it defaults this way.
However - does anyone know if there is an option to disable this functionality (in VS2010) such that if I delete/disable/add a breakpoint during debugging the changes will persist the next time I start debugging?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以在调试时使用断点管理窗口(调试 -> 窗口 -> 断点)删除断点。
从那里,您可以通过右键单击相关断点并点击“删除”来删除有问题的断点。
You can remove the breakpoint whilst debugging by using the Breakpoint Management Window (Debug -> Windows -> Breakpoints).
From there you'll be able to remove the breakpoint in question by right clicking the relevant breakpoint and hitting 'delete'.
在调试过程中,在活动断点上点击 F9。
During debugging hit F9 on active breakpoint.