-
-
Notifications
You must be signed in to change notification settings - Fork 481
Commit c9ede0e
Update breakpoints section of IDE 2.x debugger tutorial to reflect new behavior
The version of the "Cortex-Debug" VS Code extension that provides the integrated sketch debugger for Arduino IDE 2.x was
updated for the Arduino IDE 2.0.3 release.
This update resulted in some changes in the behavior of the debugger. One of these changes is in how the debugger
behaves when it is started:
When started, the version of the debugger (0.3.10) used by Arduino IDE 2.0.2 and older would pause at some point at the
start of the program (e.g., the `Reset_Handler` function in the cortex_handlers.c file of the "Arduino SAMD Boards
(32-bits ARM Cortex-M0+)" platform).
When started, the version of the debugger (1.5.1) used by Arduino IDE 2.0.3 and newer simply runs the sketch program,
only automatically pausing if it reaches a breakpoint set by the user.
The Arduino IDE 2.x debugger tutorial was written based on the previous behavior, and that information is not applicable
to Arduino IDE 2.0.3 and newer. So the outdated information is hereby updated to be correct for the current IDE versions.
This task was a bit challenging due to the tutorial being vague and inconsistent about the clicking of the "Start
Debugging" button. It is not clear exactly when (or if!!!) the user will click this button:
If they click it before adding the breakpoints, execution will pause at whichever breakpoint the execution reaches
first. That will most likely be line 33, since there is only a 1 s time window when line 35 would be the next
breakpoint, but it is not guaranteed.
If they click it after adding the breakpoints, execution will pause at the first breakpoint at line 33.1 parent c99daed commit c9ede0e
File tree
1 file changed
+2
-2
lines changed- content/software/ide-v2/tutorials/ide-v2-debugger
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
107 | 107 |
| |
108 | 108 |
| |
109 | 109 |
| |
110 | - | ||
110 | + | ||
111 | 111 |
| |
112 | - | ||
112 | + | ||
113 | 113 |
| |
114 | 114 |
| |
115 | 115 |
| |
|
0 commit comments