Possible to delete a breakpoint for good when debugging?

六月ゝ 毕业季﹏ 提交于 2019-12-18 12:05:19

问题


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?


回答1:


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




回答2:


During debugging hit F9 on active breakpoint.



来源:https://stackoverflow.com/questions/4581304/possible-to-delete-a-breakpoint-for-good-when-debugging

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