调试时可以永久删除断点吗?

发布于 2024-10-10 05:24:00 字数 166 浏览 0 评论 0原文

调试时,对断点的更改仅在该调试会话中保留。一旦调试器分离,断点就会恢复到“调试前”状态。

我可以理解这有时很有用,并理解为什么它默认这样。

但是 - 有谁知道是否有一个选项可以禁用此功能(在 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技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

天涯离梦残月幽梦 2024-10-17 05:24:00

您可以在调试时使用断点管理窗口(调试 -> 窗口 -> 断点)删除断点。

从那里,您可以通过右键单击相关断点并点击“删除”来删除有问题的断点。

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'.

-残月青衣踏尘吟 2024-10-17 05:24:00

在调试过程中,在活动断点上点击 F9

During debugging hit F9 on active breakpoint.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文