solidity icon indicating copy to clipboard operation
solidity copied to clipboard

EthDebug Format Output (Source Maps Equivalent)

Open veniger opened this issue 10 months ago • 3 comments

Abstract

EthDebug Format for debugging EVM contracts has been partially defined and is currently compatible for emulating Source Map support level.

Implement EthDebug Format output for "Source Map Equivalence"

Motivation

Motivation behind this feature is moving to a more upgradeable debug format that will in the future expand to include additional data for debugging.

Specification

  • Define and implement a new compiler flag for EthDebug Format debug data
  • Implement output for the EthDebug format data
    • Output format specified by: https://github.com/ethdebug/format/issues/139

Backwards Compatibility

No backwards compatibility issues, this only adds new output. Eventually removal of Source Maps can be considered, but it is too early for that.

veniger avatar Feb 21 '25 14:02 veniger

This issue is partially blocked by ethdebug/format#139, but the implementation can be started

veniger avatar Feb 21 '25 14:02 veniger

Note: Support level equivalent to Source Maps means not including multiple source locations for instructions that have been affected by deduplication. This will be possible when the (partially) blocking issue is resolved.

veniger avatar Feb 21 '25 14:02 veniger

This issue has been created to track high level progress on this feature implementation, sub-issues will be created for specific tasks if needed /cc @aarlt @ekpyron

veniger avatar Feb 21 '25 14:02 veniger