CMDebug debugging will pause when it reaches a line with a breakpoint set.
You can set a breakpoint either through the menu, the toolbar, or by moving the mouse cursor to the left margin of a line and left-clicking. You can only set a breakpoint on an executable line (i.e., not on a blank line, comment, label, etc.),
You can define conditional breakpoints by specifying the number of iterations before the breakpoint is triggered, and/or define a conditional expression that must be true before the breakpoint is triggered. After setting the breakpoint, enter the conditions either by right-clicking on the breakpoint and selecting "Break >=" (to set the minimum number of iterations), or "Condition" (to set the conditional expression). You can also select the Breakpoint window and double-click on the "Break >=" or "Condition" columns to edit or modify the conditions.
You can temporarily disable a breakpoint (without deleting it) by right-clicking on the breakpoint and selecting "Enable/Disable Breakpoint". You can disable all breakpoints by clicking on the Debug menu and selecting "Disable All Breakpoints".
The breakpoint window has a toolbar, with the following buttons:
New | Restore the original values for the breakpoints list |
Open | Add the contents of a file to the breakpoints list |
Save | Save the current breakpoints list to a file |
Apply | Replace the original values with the modified breakpoints list |
Print | Print the current breakpoints list |
Cut | Copy the highlighted selection to the clipboard and delete it from the breakpoints |
Copy | Copy the highlighted selection to the clipboard |
Paste | Copy the contents of the clipboard to the current cursor location |
Delete | Delete the highlighted selection (or the character at the cursor location if no selection) |
Redo | Restore the last Undo |
Help | Display the online help |
The debugger will automatically save breakpoints (the current batch file name + ".bp"), and reload them the next time the batch file is loaded in the debugger.