I try using pio within vscode with ‘gdbserver --multi’. Actually, it seems that there is some initialisation issue. The pio debugger tries to read registers before the target is loaded, see attached image.
I can type ‘run’ in the debug console then and it works. However, if I append ‘run’ to the debug_init_cmds, the debugger ‘runs twice’ and does not stop at debug_init_break.
Has anyone else tried this? Is there a solution to this problem?
Thanks in advance