Supported Visual Studio Breakpoint Features
eRTOS supports the following breakpoint features in Microsoft Visual Studio:
- Dependent Breakpoints
- Temporary Breakpoints
- Force Run To Cursor
- Drag and Drop Breakpoints
- TracePoints
- Hard-Coded Breakpoints
- Conditional Breakpoints
Dependent Breakpoints
|
Description |
Version(s) |
|---|---|
|
A dependent breakpoint only executes if another breakpoint is first hit. |
Visual Studio |
To create a dependent breakpoint:
- Click on the left margin of the line you want the first breakpoint to occur.
- Click on the left margin of the line you want the dependent breakpoint to occur.
- Hover over the dependent breakpoint and click the Settings icon.
- Select the Only enable when the following breakpoint is hit check box.
- Click on the drop-down menu and select the first breakpoint.
Temporary Breakpoints
|
Description |
Version(s) |
|---|---|
|
A temporary breakpoint is executed once and deletes itself upon execution. |
Visual Studio |
To create a temporary breakpoint:
- Click on the left margin of the line where you want the breakpoint to occur.
- Hover over the breakpoint and click the Settings icon.
- Select the Remove breakpoint once hit check box.
Force Run To Cursor
|
Description |
Version(s) |
|---|---|
|
Force Run To Cursor disables all breakpoints until the program hits the line specified as Force Run To Cursor. |
Visual Studio |
To enable Force Run To Cursor:
- Right-click the line of code you want to specify as Force Run To Cursor.
- Select Force Run To Cursor.
Drag and Drop Breakpoints
|
Description |
Version(s) |
|---|---|
|
Breakpoints can be dragged into new locations in the code and while retaining their current settings. |
Visual Studio |
TracePoints
|
Description |
Version(s) |
|---|---|
|
TracePoints allow you to log information to the Output window under configurable conditions without modifying or stopping your code. This feature does not create a breakpoint in the code. |
Visual Studio |
To create a TracePoint:
- Create a breakpoint by clicking on the left margin of the line you want the tracepoint to occur.
- Hover over the breakpoint and click the Settings icon.
- Select the Actions check box.
- Type the desired message into the Show a message in the Output Window text box.
The breakpoint icon will appear as a diamond to indicate it is now a tracepoint.
Note: For more information on the features above, see the following link: https://docs.microsoft.com/en-us/visualstudio/debugger/using-breakpoints?view=vs-2022
Hard-coded Breakpoints
|
Description |
Version(s) |
|---|---|
|
A hard-coded breakpoint is written into program code. It cannot be changed during run time. |
Visual Studio |
Conditional Breakpoints
|
Description |
Version(s) |
|---|---|
|
A conditional breakpoint executes when a pre-configured condition occurs. |
Visual Studio |
To create a conditional breakpoint:
- Create a breakpoint by clicking on the left margin of the line where you want the breakpoint to occur.
- Hover over the breakpoint and click the Settings icon.
- Select the Conditions check box.
- Configure the conditions you would like to set.
Related topics:
- Supported Visual Studio Versions
- Debugging eRTOS Applications
- Debugging RTDLLs
- Debugging Multiple Processes Simultaneously