SetBreakpointOnCurrentLine command: Difference between revisions
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
|width="50%"| '''Action:''' | |width="50%"| '''Action:''' | ||
|width="50%"| | |width="50%"| | ||
<span class="f_Para">Sets a [[ | <span class="f_Para">Sets a [[Using breakpoints#Setting a single breakpoint|breakpoint]] on the currently selected line in the </span><var>Source Code</var><span class="f_Para"> (or [[Debugging requests that spawn daemons|Daemon]]) page; if the currently selected line is not an executable statement, sets a breakpoint on the next executable line after the currently selected line. </span> | ||
'''Syntax:''' | '''Syntax:''' | ||
Line 15: | Line 15: | ||
*<span class="f_ListBul1">If you execute this command for a line that already has a breakpoint set, no additional action is taken. </span> | *<span class="f_ListBul1">If you execute this command for a line that already has a breakpoint set, no additional action is taken. </span> | ||
<span class="f_Para">For code lines for which no breakpoint is already set, the </span><span class="f_Monospace">[[ | <span class="f_Para">For code lines for which no breakpoint is already set, the </span><span class="f_Monospace">[[toggleBreakpointOnCurrentLine command|toggleBreakpointOn]]</span><span class="f_Para"> command has the same effect as the </span><span class="f_Monospace">setBreakpointOnCurrentLine</span><span class="f_Para"> command, and both commands have the same effect as double clicking a code line or right clicking a line and selecting </span><var>Toggle Breakpoint</var><span class="f_Para"> from the context menu. </span> | ||
'''Example:''' | '''Example:''' |
Revision as of 03:35, 9 December 2022
Action: |
Sets a breakpoint on the currently selected line in the Source Code (or Daemon) page; if the currently selected line is not an executable statement, sets a breakpoint on the next executable line after the currently selected line. Syntax: setBreakpointOnCurrentLine Notes:
For code lines for which no breakpoint is already set, the toggleBreakpointOn command has the same effect as the setBreakpointOnCurrentLine command, and both commands have the same effect as double clicking a code line or right clicking a line and selecting Toggle Breakpoint from the context menu. Example: This macro looks for a line that matches its argument; if it finds such a line, it sets a breakpoint on it: selectsourcetab To clear a breakpoint that is set on the current line, you can use the clearBreakpointOnCurrentLine command or the toggleBreakpointOn command. |
Client menu: | -- |
Introduced: | Build 57 |