You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed this at first when I set did set logging on in the startup commands, and found gdb.txt in the directory vscode was launched from... not alongside the executable.
I tried hardcoding a cd command into the generation of the gdb launch, here:
So just doing cd /path/to/debuggee/ ; at the beginning of the executed string, before the $.
When I did that, it not only put gdb.txt in a better place, but made other things work that weren't. I'd been getting messages from gdb of "No source file named..." on paths that did exist. But it turns out that message really means "Couldn't find symbols for file named...". By launching gdb in the directory where the output executable was (instead of where vscode was launched) these errors went away.
After doing this I was able to debug chromium built from source. And vgdb does not seem to have problems watching Blink::Node variables (which causes vscode-cpptools to hang),
The text was updated successfully, but these errors were encountered:
I noticed this at first when I set did set logging on in the startup commands, and found
gdb.txt
in the directory vscode was launched from... not alongside the executable.I tried hardcoding a cd command into the generation of the gdb launch, here:
vgdb/src/debuggers/gdb/GDB.ts
Line 775 in 3eff76c
So just doing
cd /path/to/debuggee/ ;
at the beginning of the executed string, before the $.When I did that, it not only put gdb.txt in a better place, but made other things work that weren't. I'd been getting messages from gdb of "No source file named..." on paths that did exist. But it turns out that message really means "Couldn't find symbols for file named...". By launching gdb in the directory where the output executable was (instead of where vscode was launched) these errors went away.
After doing this I was able to debug chromium built from source. And vgdb does not seem to have problems watching Blink::Node variables (which causes vscode-cpptools to hang),
The text was updated successfully, but these errors were encountered: