Debug session start take a lot of time, don't know what it it doing


stuck at “Info:Listening on port 4444 for telnet connections” for about 1 minute then start displaying “Reading symbols from…”
any suggestions? what the state it is now?

Looks to me like PlatformIO cannot identify when the debug server (OpenOCD) has successfully started up and is thus running into the 60 second default timeout.

What platformio.ini are you using? Are you manually defining a debug_server or debug_port? Does the problem disappear when you add a ready pattern as shown in the documentation to your platformio.ini?

debug_server_ready_pattern = -.*Listening on port \d+ for gdb connections
1 Like

Yes, I customed following:

debug_tool = ftdi
;debug_server
debug_port = localhost:3333
debug_server_ready_pattern = Waiting for GDB connection

I changed my setting from
debug_server_ready_pattern = Waiting for GDB connection
to
debug_server_ready_pattern = -.*Listening on port \d+ for gdb connections
, problem still, then I delete this line, work fine, no such long delay!

1 Like