Anybody knows solution for this? I’m running into exactly same issue. Trying to debug my native unit tests on Mac with latest VSC(1.83.1) and PIO plugin (Core 6.1.11·Home 3.4.4) using gdb. I signed the tool based on this thread How to debug a native application on MacOS
When running from command line, only after pressing Clt^C it shows info about breakpoint.
Reading symbols from /Users/lubos.horacek/workspace/project/.pio/build/native/program...
PlatformIO Unified Debugger -> https://bit.ly/pio-debug
PlatformIO: debug_tool = None
PlatformIO: Initializing remote target...
Temporary breakpoint 1 at 0x100000e24: file test/test_native/test_first.cpp, line 58.
PlatformIO: Initialization completed
(gdb) PlatformIO: Resume the execution to `debug_init_break = tbreak main`
PlatformIO: More configuration options -> https://bit.ly/pio-debug
Starting program: /Users/lubos.horacek/workspace/project/.pio/build/native/program
^C[New Thread 0x1603 of process 26130]
[New Thread 0x2003 of process 26130]
warning: unhandled dyld version (17)
Thread 2 hit Temporary breakpoint 1, main (argc=1, argv=0x7ff7bfeff500)
at test/test_native/test_first.cpp:58
58 UNITY_BEGIN();
(gdb) (gdb)
In VSC it hangs with this output:
Processing native (platform: native)
--------------------------------------------------------------------------------
Building...
Reading symbols from /Users/lubos.horacek/workspace/project/.pio/build/native/program...
Warning: 'set target-async', an alias for the command 'set mi-async', is deprecated.
Use 'set mi-async'.
PlatformIO Unified Debugger -> https://bit.ly/pio-debug
PlatformIO: debug_tool = None
PlatformIO: Initializing remote target...
Temporary breakpoint 1 at 0x100000d74: file test/test_native/test_firstcpp, line 58.
PlatformIO: Initialization completed
PlatformIO: Resume the execution to `debug_init_break = tbreak main`
PlatformIO: More configuration options -> https://bit.ly/pio-debug
[New Thread 0x1703 of process 13434]
Platformio.ini:
[env:native]
platform = native
test_build_src = yes
upload_port = /dev/null
test_filter =
test_native
debug_test = test_native
build_type = debug