ToggleBreakpointOnCurrentLine command: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Created page with "__TOC__ <div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 10px 0 10px 0;"> {| |width="50%"| <span class="f_Label">Action:</span> |width="50%"| <span cla...")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:


{|
{|
|width="50%"| <span class="f_Label">Action:</span>
|width="125px"| '''Action:'''
|width="50%"|
|width="575px"|
<span class="f_Para">Sets (or removes) a [[Using breakpoints|breakpoint]] for the current </span><span class="f_GUIlabel">Source Code</span><span class="f_Para"> or </span><span class="f_GUIlabel">Daemon</span><span class="f_Para"> line, if the line is or starts an executable statement. If the line is not an executable statement or the start of one, sets (or removes) a breakpoint for the first subsequent line that is or starts an executable statement. </span>
<span class="f_Para">Sets (or removes) a [[Using breakpoints|breakpoint]] for the current </span><span class="f_GUIlabel">Source Code</span><span class="f_Para"> or </span><span class="f_GUIlabel">Daemon</span><span class="f_Para"> line, if the line is or starts an executable statement. If the line is not an executable statement or the start of one, sets (or removes) a breakpoint for the first subsequent line that is or starts an executable statement. </span>


Line 15: Line 15:
<span class="f_Para">This command has the same effect as double clicking a code line or right clicking a line and selecting </span><span class="f_GUIlabel">Toggle Breakpoint</span><span class="f_Para"> from the context menu. </span>
<span class="f_Para">This command has the same effect as double clicking a code line or right clicking a line and selecting </span><span class="f_GUIlabel">Toggle Breakpoint</span><span class="f_Para"> from the context menu. </span>


<span class="f_Monospace">toggleBreakpointOnCurrentLine</span><span class="f_Para"> always sets or clears a breakpoint; </span><span class="f_Monospace">[[setBreakpointOnCurrentLine command|setBreakpointOnCurrentLine]]</span><span class="f_Para"> performs only a set action, and </span><span class="f_Monospace">[[clearBreakpointOnCurrentLine command|clearBreakpointOnCurrentLine]]</span><span class="f_Para"> performs only a clear. </span>
<span class="term">toggleBreakpointOnCurrentLine</span><span class="f_Para"> always sets or clears a breakpoint; </span><span class="f_Monospace">[[setBreakpointOnCurrentLine command|setBreakpointOnCurrentLine]]</span><span class="f_Para"> performs only a set action, and </span><span class="f_Monospace">[[clearBreakpointOnCurrentLine command|clearBreakpointOnCurrentLine]]</span><span class="f_Para"> performs only a clear. </span>


<span class="f_Para">See also the </span><span class="f_Monospace">[[breaksAt command|breaksAt]]</span><span class="f_Para"> and </span><span class="f_Monospace">[[breaks command|breaks]]</span><span class="f_Para"> commands. </span>
<span class="f_Para">See also the </span><span class="f_Monospace">[[breaksAt command|breaksAt]]</span><span class="f_Para"> and </span><span class="f_Monospace">[[breaks command|breaks]]</span><span class="f_Para"> commands. </span>
|-
|-
| <span class="f_Label">Client menu:</span>
| <span class="f_Label">'''Client menu:'''</span>
| <span class="f_GUIlabel">Breakpoints</span><span class="f_Para"> &gt; </span><span class="f_GUIlabel">Toggle Breakpoint on Current Line</span><span class="f_Para"> </span>
| <span class="f_GUIlabel">Breakpoints</span><span class="f_Para"> &gt; </span><span class="f_GUIlabel">Toggle Breakpoint on Current Line</span><span class="f_Para"> </span>
|-
|-
| <span class="f_Label">Introduced:</span>
| <span class="f_Label">'''Introduced:'''</span>
| <span class="f_Para">Build 28 </span>
| <span class="f_Para">Build 28 </span>
|}
|}
Line 29: Line 29:
</div>
</div>
[[Category:Debugger Commands]]
[[Category:Debugger Commands]]
[[Category:Debugger Home]]

Latest revision as of 19:08, 9 February 2023

Action:

Sets (or removes) a breakpoint for the current Source Code or Daemon line, if the line is or starts an executable statement. If the line is not an executable statement or the start of one, sets (or removes) a breakpoint for the first subsequent line that is or starts an executable statement.

For code lines for which a breakpoint is set, toggleBreakpointOn removes the breakpoint.

Syntax:

toggleBreakpointOnCurrentLine 

This command has the same effect as double clicking a code line or right clicking a line and selecting Toggle Breakpoint from the context menu.

toggleBreakpointOnCurrentLine always sets or clears a breakpoint; setBreakpointOnCurrentLine performs only a set action, and clearBreakpointOnCurrentLine performs only a clear.

See also the breaksAt and breaks commands.

Client menu: Breakpoints > Toggle Breakpoint on Current Line
Introduced: Build 28