Skip to content

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:

  1. Open Tools -> Options.
  2. Navigate to Debugging -> Symbols.
  3. Add a new symbol file location: https://symbols.jbmod.dev/.
  4. Ensure Microsoft Symbol Servers is also checked.
  5. 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

  1. Attach to Process: Launch JBMod and attach Visual Studio to jbmod.exe.
  2. Load Symbols: If symbols don't load automatically, right-click the module in the Modules window and select Load Symbols.
  3. Set Breakpoints: You should now be able to set breakpoints in the source code.