Okay, I will need to try that. So the VSCode debug console has nothing to do with the OpenOCD / GDB shell.
Is it possible to open the OpenOCD / GDB shell in VSCode/PIO?
I then opened a telnet terminal connecting to the local host (127.0.0.1) at port 4444. The application level tracing commands (e.g. ‘esp apptrace start file://trace.log 1 2048 5 0 0’) seems to work in the telnet terminal.
If the PIO debug console is not expected to handle application level tracing, I guess I shouldn’t make an issue report?
Oh but the shell you get in the debug console is a GDB shell, not OpenOCD. Maybe prefixing the command with “monitor” (…esp apptrace) will make GDB forward the command to OpenOCD?