Debugging JBMod¶
We provide a symbol server for all JBMod GitHub builds to make debugging easier when you aren't building the project yourself.
Symbol Server Integration¶
Our symbol server is compatible with both symsrv (Visual Studio, WinDbg) and debuginfod (GDB, LLDB). It contains symbols for all builds generated by our GitHub Actions.
Visual Studio (symsrv)¶
To use the symbol server in Visual Studio:
- Open Tools -> Options.
- Navigate to Debugging -> Symbols.
- Add a new symbol file location:
https://symbols.jbmod.dev/. - Ensure Microsoft Symbol Servers is also checked.
- Set a local directory for caching symbols.
Debuginfod¶
If you're using GDB or LLDB, you can set the DEBUGINFOD_URLS environment variable:
export DEBUGINFOD_URLS="https://symbols.jbmod.dev"
Debugging Workflow¶
- Attach to Process: Launch JBMod and attach Visual Studio to
jbmod.exe. - Load Symbols: If symbols don't load automatically, right-click the module in the Modules window and select Load Symbols.
- Set Breakpoints: You should now be able to set breakpoints in the source code.