@@ -169,10 +169,12 @@ <h1 id="run-and-debug-view">Run and Debug view</h1>
169169< a href ="https://github.com/eclipse-cdt-cloud/vscode-peripheral-inspector "> Eclipse CDT Cloud - Peripherals Inspector</ a > .</ p >
170170</ div >
171171< h2 id ="debug-toolbar "> Debug toolbar</ h2 >
172- < p > Once a debug session starts, the < strong > Debug toolbar</ strong > appears at the top of the window. The toolbar contains actions to control
173- the flow of the debug session, such as stepping through code, pausing execution, and stopping the debug session.</ p >
172+ < p > Once a debug session starts, the < strong > Debug toolbar</ strong > appears at the top of the window. The toolbar contains actions to
173+ control the flow of the debug session, such as stepping through code, pausing execution, and stopping the debug
174+ session.</ p >
174175< p > < img alt ="Debug toolbar " src ="images/debug-toolbar.png " /> </ p >
175176< p > The following table describes the actions available in the debug toolbar:</ p >
177+ <!-- markdownlint-disable MD013 MD033 -->
176178< table >
177179< thead >
178180< tr >
@@ -207,16 +209,17 @@ <h2 id="debug-toolbar">Debug toolbar</h2>
207209</ tr >
208210</ tbody >
209211</ table >
210- < p > If your debugging sessions involve multiple targets (for example, a multi-core device), the debug toolbar shows the list
211- of sessions and lets you switch between them.</ p >
212+ <!-- markdownlint-enable MD013 MD033 -->
213+ < p > If your debugging sessions involve multiple targets (for example, a multi-core device), the debug toolbar shows the
214+ list of sessions and lets you switch between them.</ p >
212215< h2 id ="variables-section "> VARIABLES section</ h2 >
213216< p > During a debugging session, you can inspect variables, expressions, and registers in the < strong > VARIABLES section</ strong > of the
214217< strong > Run and Debug view</ strong > or by hovering over their source in the editor. Variable values and expression evaluation are
215- relative to the selected stack frame in the < strong > CALL STACK section</ strong > . In case of multi-core, registers are relative to the
216- core that you are debugging.</ p >
218+ relative to the selected stack frame in the < strong > CALL STACK section</ strong > . In case of multi-core, registers are relative to
219+ the core that you are debugging.</ p >
217220< p > < img alt ="VARIABLES section " src ="images/VARIABLES-section.png " /> </ p >
218- < p > To change the value of a variable during the debugging session, right-click on the variable in the < strong > VARIABLES section </ strong > and
219- select < strong > Set Value</ strong > .</ p >
221+ < p > To change the value of a variable during the debugging session, right-click on the variable in the
222+ < strong > VARIABLES section </ strong > and select < strong > Set Value</ strong > .</ p >
220223< p > You can use the < strong > Copy Value action</ strong > to copy the variable's value, or the < strong > Copy as Expression action</ strong > to copy an
221224iexpression to access the variable. You can then use this expression in the < a href ="#watch-section "> < strong > WATCH section</ strong > </ a > .</ p >
222225< p > To filter variables by their name or value, use the Alt/Opt + Ctrl/Cmd + F keyboard shortcut while the focus is on the
@@ -226,8 +229,8 @@ <h2 id="watch-section">WATCH section</h2>
226229< p > Variables and expressions can also be evaluated and watched in the Run and Debug view's WATCH section.</ p >
227230< p > < img alt ="WATCH section " src ="images/WATCH-section.png " /> </ p >
228231< h2 id ="call-stack-section "> CALL STACK section</ h2 >
229- < p > The < strong > CALL STACK</ strong > sections shows objects that are currently on stack. Threads are shown for applications that use an RTOS.
230- Each object is associated to its location or value, and type.</ p >
232+ < p > The < strong > CALL STACK</ strong > sections shows objects that are currently on stack. Threads are shown for applications
233+ that use an RTOS. Each object is associated to its location or value, and type.</ p >
231234< p > < img alt ="CALL STACK section " src ="images/call-stack-section.png " /> </ p >
232235< p > The window content is updated automatically whenever program execution stops.</ p >
233236< p > The context menu allows to:</ p >
@@ -240,8 +243,8 @@ <h2 id="call-stack-section">CALL STACK section</h2>
240243</ li >
241244</ ul >
242245< h2 id ="breakpoints-section "> BREAKPOINTS section</ h2 >
243- < p > A breakpoint pauses the execution of your code at a specific point, so you can inspect the state of your application at that
244- point. VS Code supports several types of breakpoints.</ p >
246+ < p > A breakpoint pauses the execution of your code at a specific point, so you can inspect the state of your
247+ application at that point. VS Code supports several types of breakpoints.</ p >
245248< h3 id ="setting-breakpoints "> Setting breakpoints</ h3 >
246249< p > To set or unset a breakpoint, click on the editor margin or use < strong > F9</ strong > on the current line.</ p >
247250< ul >
@@ -252,8 +255,8 @@ <h3 id="setting-breakpoints">Setting breakpoints</h3>
252255< p > Disabled breakpoints have a filled gray circle.</ p >
253256</ li >
254257< li >
255- < p > When a debugging session starts, breakpoints that can't be registered with the debugger change to a gray hollow circle.
256- The same might happen if the source is edited while a debug session without live-edit support is running.</ p >
258+ < p > When a debugging session starts, breakpoints that can't be registered with the debugger change to a gray hollow
259+ circle. The same might happen if the source is edited while a debug session without live-edit support is running.</ p >
257260</ li >
258261</ ul >
259262< p > < img alt ="Breakpoint in the edirot margin " src ="images/bkpt-in-editor-margin.png " /> </ p >
@@ -262,7 +265,8 @@ <h3 id="setting-breakpoints">Setting breakpoints</h3>
262265< p > < img alt ="BREAKPOINTS section " src ="images/breakpoints-section.png " /> </ p >
263266< h3 id ="breakpoint-types "> Breakpoint types</ h3 >
264267< h4 id ="conditional-breakpoints "> Conditional breakpoints</ h4 >
265- < p > A powerful VS Code debugging feature is the ability to set conditions based on expressions, hit counts, or a combination of both.</ p >
268+ < p > A powerful VS Code debugging feature is the ability to set conditions based on expressions, hit counts,
269+ or a combination of both.</ p >
266270< ul >
267271< li >
268272< p > Expression condition: The breakpoint is hit whenever the expression evaluates to true.</ p >
@@ -301,7 +305,8 @@ <h4 id="conditional-breakpoints">Conditional breakpoints</h4>
301305< p > Right-click on the breakpoint in the editor margin and select Edit Breakpoint.</ p >
302306</ li >
303307< li >
304- < p > Select the pencil icon next for an existing breakpoint in the < strong > BREAKPOINTS section</ strong > of the < strong > Run and Debug view</ strong > .</ p >
308+ < p > Select the pencil icon next for an existing breakpoint in the < strong > BREAKPOINTS section</ strong > of
309+ the < strong > Run and Debug view</ strong > .</ p >
305310</ li >
306311</ ul >
307312</ li >
@@ -310,43 +315,45 @@ <h4 id="conditional-breakpoints">Conditional breakpoints</h4>
310315</ li >
311316</ ul >
312317< h4 id ="triggered-breakpoints "> Triggered breakpoints</ h4 >
313- < p > A triggered breakpoint is type of conditional breakpoint that is enabled once another breakpoint is hit. They can be useful
314- when diagnosing failure cases in code that happen only after a certain precondition.</ p >
315- < p > Triggered breakpoints can be set by right-clicking on the glyph margin, selecting < strong > Add Triggered Breakpoint</ strong > , and then
316- choosing which other breakpoint enables the breakpoint.</ p >
318+ < p > A triggered breakpoint is type of conditional breakpoint that is enabled once another breakpoint is hit. They can
319+ be useful when diagnosing failure cases in code that happen only after a certain precondition.</ p >
320+ < p > Triggered breakpoints can be set by right-clicking on the glyph margin, selecting < strong > Add Triggered Breakpoint</ strong > , and
321+ then choosing which other breakpoint enables the breakpoint.</ p >
317322< p > < img alt ="Creating a triggered breakpoint " src ="images/triggered-bkpt.gif " /> </ p >
318323< h4 id ="inline-breakpoints "> Inline breakpoints</ h4 >
319- < p > Inline breakpoints are only hit when the execution reaches the column associated with the inline breakpoint. This is useful
320- when debugging minified code, which contains multiple statements in a single line.</ p >
321- < p > An inline breakpoint can be set using < strong > Shift + F9</ strong > or through the context menu during a debug session. Inline breakpoint
322- are shown inline in the editor.</ p >
323- < p > Inline breakpoints can also have conditions. Editing multiple breakpoints on a line is possible through the context menu in
324- the editor's left margin.</ p >
324+ < p > Inline breakpoints are only hit when the execution reaches the column associated with the inline breakpoint.
325+ This is useful when debugging minified code, which contains multiple statements in a single line.</ p >
326+ < p > An inline breakpoint can be set using < strong > Shift + F9</ strong > or through the context menu during a debug session.
327+ Inline breakpoint are shown inline in the editor.</ p >
328+ < p > Inline breakpoints can also have conditions. Editing multiple breakpoints on a line is possible through the
329+ context menu in the editor's left margin.</ p >
325330< h4 id ="function-breakpoints "> Function breakpoints</ h4 >
326- < p > Instead of placing breakpoints directly in source code, a debugger can support creating breakpoints by specifying a function
327- name. This is useful in situations where source is not available but a function name is known.</ p >
328- < p > To create a function breakpoint, select the + button in the < strong > BREAKPOINTS section</ strong > header and enter the function name. Function
329- breakpoints are shown with a red triangle in the < strong > BREAKPOINTS section</ strong > .</ p >
331+ < p > Instead of placing breakpoints directly in source code, a debugger can support creating breakpoints by specifying
332+ a function name. This is useful in situations where source is not available but a function name is known.</ p >
333+ < p > To create a function breakpoint, select the + button in the < strong > BREAKPOINTS section</ strong > header and enter the function
334+ name. Function breakpoints are shown with a red triangle in the < strong > BREAKPOINTS section</ strong > .</ p >
330335< h4 id ="data-breakpoints "> Data breakpoints</ h4 >
331- < p > If a debugger supports data breakpoints, they can be set from the context menu in the < strong > VARIABLES section</ strong > . The Break on
332- Value Change/Read/Access commands add a data breakpoint that is hit when the value of the underlying variable changes/is
333- read/is accessed. Data breakpoints are shown with a red hexagon in the < strong > BREAKPOINTS section</ strong > .</ p >
336+ < p > If a debugger supports data breakpoints, they can be set from the context menu in the < strong > VARIABLES section</ strong > . The Break
337+ on Value Change/Read/Access commands add a data breakpoint that is hit when the value of the underlying variable
338+ changes/is read/is accessed. Data breakpoints are shown with a red hexagon in the < strong > BREAKPOINTS section</ strong > .</ p >
334339< h4 id ="logpoints "> Logpoints</ h4 >
335- < p > A logpoint is a variant of a breakpoint that does not interrupt into the debugger, but instead logs a message to the debug
336- console. Logpoints can help you save time by not having to add or remove logging statements in your code.</ p >
340+ < p > A logpoint is a variant of a breakpoint that does not interrupt into the debugger, but instead logs a message to the
341+ debug console. Logpoints can help you save time by not having to add or remove logging statements in your code.</ p >
337342< p > A logpoint is represented by a diamond-shaped icon. Log messages are plain text but can also include expressions to be
338343evaluated within curly braces ('{}').</ p >
339- < p > To add a logpoint, right-click in the editor left margin and select Add Logpoint, or use the < strong > Debug: Add Logpoint... </ strong >
340- command in the Command Palette (< strong > Ctrl/Cmd + Shift + p</ strong > ).</ p >
344+ < p > To add a logpoint, right-click in the editor left margin and select Add Logpoint, or use the
345+ < strong > Debug: Add Logpoint... </ strong > command in the Command Palette (< strong > Ctrl/Cmd + Shift + p</ strong > ).</ p >
341346< p > < img alt ="Creating a logpoint " src ="images/create-logpoint.gif " /> </ p >
342- < p > Just like regular breakpoints, logpoints can be enabled or disabled and can also be controlled by a condition and/or hit count.</ p >
347+ < p > Just like regular breakpoints, logpoints can be enabled or disabled and can also be controlled by a condition
348+ and/or hit count.</ p >
343349< h2 id ="peripheral-inspector "> PERIPHERAL Inspector</ h2 >
344350< p > The Eclipse CDT Cloud < strong > Periperhal Inspector</ strong > is a standalone SVD Viewer extension.</ p >
345351< p > < img alt ="Peripheral Inspector " src ="images/peripheral-inspector.png " /> </ p >
346352< p > For more information, refer to the
347353< a href ="https://github.com/eclipse-cdt-cloud/vscode-peripheral-inspector "> Peripheral Inspector GitHub repository</ a > .</ p >
348354< h2 id ="memory-inspector "> Memory Inspector</ h2 >
349- < p > The Eclipse CDT Cloud < strong > Memory Inspector</ strong > provides a powerful and configurable memory viewer that works with debug adapters.</ p >
355+ < p > The Eclipse CDT Cloud < strong > Memory Inspector</ strong > provides a powerful and configurable memory viewer that works with
356+ debug adapters.</ p >
350357< p > < img alt ="Memory Inspector " src ="images/memory-inspector.png " /> </ p >
351358< p > It features:</ p >
352359< ul >
@@ -387,23 +394,21 @@ <h2 id="disassembly-view">Disassembly View</h2>
387394< p > The < strong > Disassembly View</ strong > shows the program execution in assembly code intermixed with the source code.</ p >
388395< p > To open the < strong > Disassembly View</ strong > :</ p >
389396< ul >
390- < li >
391- < p > press < strong > Ctrl/Cmd + Shift + p</ strong > and select "Open Disassembly View" or</ p >
392- </ li >
393- < li >
394- < p > Right-click an item in the < a href ="#call-stack-section "> < strong > CALL STACK section</ strong > </ a > and select "Open Disassembly View"</ p >
395- </ li >
397+ < li > press < strong > Ctrl/Cmd + Shift + p</ strong > and select "Open Disassembly View" or</ li >
398+ < li > Right-click an item in the < a href ="#call-stack-section "> < strong > CALL STACK section</ strong > </ a > and select "Open Disassembly View"</ li >
396399</ ul >
397400< p > < img alt ="Disassembly View " src ="images/disassembly-view.png " /> </ p >
398401< h2 id ="debug-console "> Debug Console</ h2 >
399- < p > The < strong > Debug Console</ strong > enables viewing and interacting with the output of your code running in the debugger. Expressions can
402+ < p > The < strong > Debug Console</ strong > enables viewing and interacting with the output of your code running in the debugger.
403+ Expressions can
400404be evaluated with the < strong > Debug Console REPL</ strong > (Read-Eval-Print Loop) feature.</ p >
401405< p > With the CMSIS Debug extension, you can use the Debug Console REPL to enter
402- < a href ="https://sourceware.org/gdb/current/onlinedocs/gdb.html/index.html "> GDB commands</ a > while debugging. Before entering a GDB
403- command, you have to explicitly enter a "greater-than"-character < code > ></ code > so that the following strings can be evaluated as a GDB
404- command.</ p >
406+ < a href ="https://sourceware.org/gdb/current/onlinedocs/gdb.html/index.html "> GDB commands</ a > while debugging. Before entering
407+ a GDB command, you have to explicitly enter a "greater-than"-character < code > ></ code > so that the following strings can be
408+ evaluated as a GDB command.</ p >
405409< p > Debug Console input uses the mode of the active editor, which means that it supports syntax coloring, indentation, auto
406410closing of quotes, and other language features.</ p >
411+ <!-- markdownlint-disable-next-line MD036 -->
407412< p > < strong > Example</ strong > </ p >
408413< p > The following example shows how to check the currently set breakpoints with the < code > > info break</ code > command. Afterwards, the
409414application is run with the < code > > continue</ code > command.</ p >
0 commit comments