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
Foundry's built-in debugger is an opcode-level stepper; source-level breakpoints remain a pain point (#5765, #5510). soldb is an ETHDebug-first, LLDB-style Solidity debugger (REPL with break/step/print, DAP server, tx trace/simulate, per-line gas profiling) that falls back to legacy source maps, if there is no ETHDebug generated.
Some potential ways to do it:
forge test --debug / forge debug hand execution to soldb, either by linking soldb-debugger/soldb-repl (preferred: forge tests run in revm or evm2 in-process, so soldb can consume forge's step traces directly), or by shelling out to the CLI for on-chain txs (cast run)
forge emits ETHDebug/legacy-source-mappings artifacts and auto-builds the address:Contract:dir mappings from its traces
later: soldb-dap for IDE attach
Of course part of the problem is in compiler, so both solar and solc will need to generate proper debug info, so consumers such as soldb can consume it right.
imo we should go with (1) since it might be less prone to errors/cross-layer bugs
forge takes care of providing what soldb needs without worrying a lot about dbg logic besides a small adapter (execution traces -> whatever format the debugger needs)
also another thing we can consider is bringing back TUI work for this? ref: #14738
The core in-process SolDB integration landed in #17429, including legacy source-map fallback for Forge test/script and Cast debugging. Closing the integration request; compiler ETHDebug ingestion remains tracked in #17430, and DAP/IDE attachment remains open in #5784.
Activity
djolertrk commentedon Sep 2, 2026
cc @DaniPopes @figtracer @mattsse @0xKarl98
figtracer commentedon Sep 2, 2026
imo we should go with (1) since it might be less prone to errors/cross-layer bugs
forge takes care of providing what soldb needs without worrying a lot about dbg logic besides a small adapter (execution traces -> whatever format the debugger needs)
also another thing we can consider is bringing back TUI work for this? ref: #14738
djolertrk commentedon Sep 3, 2026
yes, I like the idea!
feat(debugger): replace built-in dbg with `soldb` (#17429)
mablr commentedon Nov 5, 2026
The core in-process SolDB integration landed in #17429, including legacy source-map fallback for Forge test/script and Cast debugging. Closing the integration request; compiler ETHDebug ingestion remains tracked in #17430, and DAP/IDE attachment remains open in #5784.
chore: sync with upstream foundry (#8)