如何仅在 Visual Studio 中启用当前文件的断点? [英] How to enable breakpoints of current file only in Visual Studio?
问题描述
例如,我正在调试一个包含多个源文件的项目,其中我已经设置了断点.在调试期间,我曾经从调试菜单中禁用了所有断点(Debug -> Disable All Breakpoints
).
For example, I am debugging a project that contains several source files where I already have breakpoints. During debugging I once disabled all the breakpoints from debug menu (Debug -> Disable All Breakpoints
).
但现在我只想启用我想要调试的特定源文件的断点.在 Visual Studio (2013) 中,如何做到这一点?
But now I want to enable the breakpoints only of a particular source file which I want to debug. In Visual Studio (2013), how to do that?
推荐答案
在断点窗口 (Debug > Windows > Breakpoints) 中,将您的文件名放在搜索:"框中并在在列中"选择文件":"下拉.
In the breakpoint window (Debug > Windows > Breakpoints), put your file name in the "Search:" box and select "File" in the "In Column:" drop down.
断点窗口工具栏有一个按钮,用于启用或禁用与当前搜索条件匹配的所有断点"
The Breakpoints window toolbar has a button for "Enable or disable all breakpoints matching the current search criteria"
这篇关于如何仅在 Visual Studio 中启用当前文件的断点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!