{"refreshDue":false,"initiative":{"id":"01M2J7YH0GB72P1EXY776B0882","slug":"source-level-debugging-for-solidity-ethdebug-in-solc-2","title":"Walnut: Source-Level Debugging for Solidity, ethdebug in solc","summary":"solc does not emit the debug information debuggers need, so every tool reverse-engineers compiler behavior and breaks when the compiler changes. This funds implementing the ethdebug format directly in solc, with debug data that survives the full optimizer pipeline so it works on production builds.","details":"","discourseUrl":"","goalUsd":279000,"status":"approved","type":"grant","sortRank":null,"safeAddress":"0x2e72eE36F7575Fae93f94aAeDAA9E77db2259d59","paidOutUsd":0,"proposer":"0xDB75Ce4e2f65C80867A545223ccF10d5E5a713Ca","durationMonths":9,"recipientTeam":"Walnut","recipientUrl":"https://walnut.dev/","topup":true,"milestoneReviewer":"Nicholas D'andrea (ethdebug) and Nikola Matic (Solidity)","categories":["compilers","audits-analysis"],"sections":{"why":"Debugging Solidity is a longstanding pain point, and the root cause is structural. The compiler (solc) does not emit the rich debug information debuggers need: variable types, scopes, and runtime locations. Without a standard for that data, every debugging tool reverse-engineers compiler behavior, which breaks whenever the compiler changes.\n\nThe 2025 Solidity Developer Survey (925 responses) re-confirmed this. The three most requested improvements, step-through debugging, variable and state inspection, and transaction replay, map directly to what a standard debug format enables. The need is sharpest in production, where deployed contracts are immutable and the cost of not understanding behavior is highest.\n\nThis RFP funds implementing the [ethdebug format](https://ethdebug.github.io/format/) directly in solc. The end state:\n* solc emits standardized debug data covering storage variables, local variables, memory, calldata, and per-instruction context\n* That data survives the full compilation pipeline, including all optimizer passes, so it works on production builds\n* Debuggers, frameworks, monitoring tools, explorers, and agents can read one shared standard instead of reconstructing compiler internals","in_scope":"* The full six-milestone implementation of ethdebug in solc, from test infrastructure through the optimized production pipeline\n* Complete debug data covering storage variables, local variables, memory, calldata, and per-instruction context\n* Upstreaming the implementation into solc and documenting how tools consume the emitted data","out_scope":"* Building end-user debugger UIs. This funds the compiler-level data, not the tools that read it. Walnut is building soldb, the first ETHDebug consumer - a CLI-based debugger and tracer for Solidity.\n* The ethdebug format specification itself, which Argot maintains separately.\n* Ongoing maintenance beyond the grant period, beyond the maintenance plan required below.","team":"This RFP is a co-sponsorship opportunity brought by **Argot Collective** and **Walnut**. The ethdebug format is developed by Argot engineer Nicholas D'Andrea. The solc implementation is done by Walnut. We expect them to do this work.\n\nThis is not a competitive tender in the usual sense. The project is already in progress with the first three milestones funded and underway, so there is no open challenge window. A challenger just doesn’t make sense in this case.\n\nArgot Collective is the anchor backer. A public goods nonprofit, Argot has committed up to $151,000 of the $279,000 project budget. This RFP raises the remaining $127,000: $85,500 to finish the project and additional $43,000 to ensure ecosystem adoption by every user of the solc compiler.","why_grant":"* [ethdebug/format](https://github.com/ethdebug/format) is the open specification for EVM debug information, comparable in intent to DWARF for C and C++. It defines schemas for types, variable locations, runtime context, and compiler metadata.\n* The implementation is underway at Walnut, with the first three milestones below funded by Argot.","commitments":"1. **Open source.** All work merged under solc's existing license, no closed-source dependencies.\n2. **Upstream, not a fork.** Deliverables land in the official solc repository, or are open pull requests under active review by the Solidity team. A private fork does not count.\n3. **Machine-checkable acceptance.** Debug data output is validated by an automated test suite in public CI against the ethdebug format schemas.\n4. **Production coverage proven.** Final acceptance requires debug data demonstrated correct on optimized builds.\n5. **Maintenance plan.** A documented plan for keeping ethdebug output current as solc and the optimizer evolve."},"milestones":[{"name":"Testing and validation infrastructure","amount":13000,"adoption":false,"done":true,"link":"https://github.com/argotorg/solidity/pull/16727","month":"","criteria":["Automated test and validation infrastructure for ethdebug output in place, running in public CI"]},{"name":"Internal debug data specification","amount":19000,"adoption":false,"done":true,"link":"https://github.com/argotorg/solidity/pull/16780","month":"","criteria":["Internal specification for how solc represents and propagates debug data, published for review"]},{"name":"Yul serialization","amount":33000,"adoption":false,"done":false,"link":"","month":"2026-10","criteria":["Debug info survives compilation round-trips through Yul, demonstrated by automated tests in public CI"]},{"name":"Full unoptimized pipeline","amount":86000,"adoption":false,"done":false,"link":"","month":"2027-03","criteria":["solc emits ethdebug-format debug data for unoptimized builds, covering storage variables, local variables, memory, calldata, and per-instruction context","Output validates against the ethdebug schemas in an automated public CI check","Implementation is merged into solc, or is an open pull request under active review by the Solidity team, linkable by URL","A published walkthrough showing a debugger or test harness consuming the emitted data on a sample contract"]},{"name":"Optimized pipeline","amount":85000,"adoption":false,"done":false,"link":"","month":"2027-06","criteria":["Debug data extended through all optimizer passes, correct on optimized production builds","Public test suite demonstrates debug data accuracy on optimized builds, with results published","Implementation merged into solc, or an open pull request under active review, linkable by URL","Published maintenance plan for keeping ethdebug output current across future solc and optimizer changes"]},{"name":"Adoption evidence","amount":43000,"adoption":true,"done":false,"link":"","month":"2027-06","criteria":["soldb debugs optimized production builds end-to-end (tracing, source-level stepping, variable inspection) using solc's ETHDebug output alone - no source-map fallback. Results published and reproducible: pinned solc/soldb versions, sample contracts, run instructions.","Integration engagement is completed with at least 3 of the 5 providers (Tenderly, Foundry, Hardhat, Medusa, Remix) - anywhere from confirmed interest to active work. Each engagement is evidenced in writing and names an indicative, non-binding timeframe (e.g. a target quarter)."]}],"links":[],"structured":true,"revision":5,"createdAt":1789466199.271,"approvedAt":1789466757.365},"revisions":[{"n":1,"author":"0xDB75Ce4e2f65C80867A545223ccF10d5E5a713Ca","source":"submit","archived":false,"state":"live","createdAt":1789466199.271},{"n":2,"author":"0x839395e20bbB182fa440d08F850E6c7A8f6F0780","source":"admin","archived":false,"state":"live","createdAt":1789466609.835},{"n":3,"author":"0x839395e20bbB182fa440d08F850E6c7A8f6F0780","source":"admin","archived":false,"state":"live","createdAt":1789467280.76},{"n":4,"author":"0x839395e20bbB182fa440d08F850E6c7A8f6F0780","source":"admin","archived":false,"state":"live","createdAt":1789483735.234},{"n":5,"author":"0x7767FB920338eED6Fe68A4d7C411f84a3F24f20c","source":"admin","archived":false,"state":"live","createdAt":1794558875.597}],"summary":{"pledged":151000,"received":0,"donated":7.7,"total":151007.7,"live":true,"refreshDue":false,"ledger":8.53,"paidOut":0},"onBallot":true,"pct":54.1,"pledges":[{"id":"01M2J7YHE9JPBTYN3CV7GHGKM6","company":"Argot Collective","amountUsd":151000,"status":"pledged","note":"","url":"https://www.argot.org/","logoUrl":"https://ipfs.blossom.software/ipfs/bafkreiau4a422rfgeafg5ndp36ldixaufkx6km6zu4offzkmatn5uyg23q","createdAt":1789466199.497}],"donations":[{"txHash":"0xc36db373ec3d810aa0cf83578c9108e59b335c0a37a4bb2bf8aea819d8bfd5ba","tokenSymbol":"USDC","tokenAddress":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","amount":1.16,"amountRaw":"1160000","amountUsd":1.16,"donor":"0xd7C92cE4Edb39c92be48F33F690f0947d73086E9","status":"confirmed","detail":"verified: 1.16 USDC received","source":"tx","createdAt":1791099324.936,"confirmedAt":1791099355.441},{"txHash":"0x0ee69534a2f29948a8b45d837bc729fae351b607b4bdc8a20d5a264887bcf54f","tokenSymbol":"USDT","tokenAddress":"0xdAC17F958D2ee523a2206206994597C13D831ec7","amount":4.7,"amountRaw":"4700000","amountUsd":4.7,"donor":"0x56Eddb7aa87536c09CCc2793473599fD21A8b17F","status":"confirmed","detail":"verified: 4.7 USDT received","source":"tx","createdAt":1789486241.486,"confirmedAt":1789486241.486},{"txHash":"0xc8853be7c2794944b8af376ce134f6fffd9f25c3c0488410a2bb66768016fde2","tokenSymbol":"ETH","tokenAddress":"","amount":0.0011111,"amountRaw":"1111100000000000","amountUsd":2.67,"donor":"0x6e7679d53C43a8A9E2cf87fCA99a1DB9B379FE29","status":"confirmed","detail":"verified: 0.0011111 ETH received","source":"tx","createdAt":1789484373.519,"confirmedAt":1789484404.357}],"funded":false,"donationsEnabled":true,"ledger":{"checkedAt":1795847505.48,"ok":true,"intervalMinutes":10,"refreshDue":false,"updating":false}}