07.23 Set a Complex Breakpoint Condition
MENU | [Context Menu] | Condition |
COMMAND | EditorContextMenus.CodeWindow.Breakpoint.BreakpointCondition |
VERSIONS | 2005, 2008, 2010 |
CODE | vstipDebug0022 |
We previously discussed how to set simple conditions. (See vstipDebug0021, 07.22 Set a Simple Breakpoint Condition, on page 318.) The real power of the Breakpoint Condition dialog box is the ability to execute any line of code from it:
For example, you can use it to call external methods. The following example illustrates this, but bear in mind that it’s a contrived example, designed to show how this works. The following illustration shows the code we want to execute: ...
Get Coding Faster: Getting More Productive with Microsoft® Visual Studio® now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.