platformio-vscode-ide: Debugger breakpoints are not activated on new debug session start
Configuration
Operating system: Windows 10 x64 v1607 LTSB Russian
PlatformIO Version (platformio --version): 3.6.4
Description of problem
The breakpoints I set before I start debug session are not automatically activated when I start a new debug session.
Steps to Reproduce
- Open some “hello world” example.
- Set a breakpoint somewhere so that it will be hit during program execution.
- Debug the project.
- After the execution stops at the beginning of the
mainfunction, press “Continue” (F5).
Actual Results
The breakpoint is not hit.
Expected Results
The breakpoint should be hit.
Additional info
Workaround: set the breakpoints after you start the debug session and the execution stops at the beginning of the main function.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 23 (9 by maintainers)
Also affected here using stlink on ststm32 platform. Adding
debug_init_break =(empty) to the platformio.ini doesn’t help and actually makes the problem worse.YES!
That works. It now preserves and observes breakpoints between Debug sessions and also when I shutdown and restart VSCode. It no longer stops at init() when starting a session; instead it stops in the reset handler function. That is not a problem for me.
Thank you, Ivan! Will you be incorporating this into a future release?