So nim-gdb is working fine for me now with binaries. I can use it on VSCode aswell and it works great. finish.exe should set the NIM_GDB environment in the nim-gdb.bat if you let it setup mingw btw. I had to fix that manually.
However, I've coded a simple library with nim which gets load some time after the main program is launched. The library itself is compiled with --debugger:native --passL:-s --passL:-static-libgcc. I've expected that attaching gdb to the process should be enough to set breakpoints but thats not the case.
So how to debug a library coded in nim?
My try was:
nim-gdb -p pid
b main.nim:90
No symbol table is loaded. Use the "file" command.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (main.nim:83) pending.
Library gets load now and breakpoint never gets hit and stay on pending all the time.