currently I try tweak my debugger settings for openocd-Debug-Server (pio v4.0.0a23).
I looked a little in the sources and found: if there is no debug_port option in my env then
pio trys to run a piogdb command (that I do not have) … and opens a gdb that is not working since the somehow the pipe fails.
With debug_port=localhost:3333 all is fine and I can run a debug sessions.
Anyway I would prefer the “pipe-allowed-mode” since I have a setup with more then one board connected and in this mode I do not need to juggle with port numbers (just with debugger serials).
Here are my settings:
[env:MyBoard] debug_server = $PLATFORMIO_HOME_DIR/packages/tool-openocd/bin/openocd -f $PROJECT_DIR/debug_myboard.cfg #debug_port = localhost:3333
Any help is apreciated, best regards, Axel
PS: Many thanks to all that made it possible to opensourcing the pio-debugger framework