No symbol table is loaded. Use the "file" command

hello there,
I’m sorry for creating another topic about this issue but even from many similar topics I could not understand whats happening. I’m trying to run debug on my unit tests, but debug (freaze it seams it working but never reach end or breakpoint) plus there always popup error:

No symbol table is loaded. Use the “file” command. (from break-insert “c:\Users\XXX\Documents\PlatformIO\Projects\my_project\test\test_desktop\mainTest.cpp:8”)

my platformio.ini looks like this:

[env:native]
platform = native
test_framework = googletest
build_type = debug
debug_test = test_desktop
debug_init_break = tbreak loop

[env:uno]
platform = atmelavr
board = uno
framework = arduino
test_ignore = test_desktop

the debuging was working few weeks ago fine but now is not (Its possible that due to experimenting I changed something while installing new updates of mingw and CLI)

Can you please advice what should I be looking for.

Can you add

debug_build_flags = -O0 -g3 -ggdb3

to the native environment?

thank you but unfortunately it did not help. aslo this window pop up

You clicked on “Start Debugging” too fast after saving the platformio.ini. Wait a bit and retry, or reload the VSCode files (Ctrl+Shift+P → Rebuild Intellisense).

ok now the window did not pop up but problem is same

Remove that, I don’t see how loop gets into a native test.

I installed the latest MinGW for Windows x64 through https://winlibs.com/.

I’m using

[env:native]
platform = native
test_framework = googletest
build_type = debug
debug_test = test_desktop

and test\test_desktop\mainTest.cpp is from here.

When I press “start debugging” I get

1 Like