Expand description
ETHDebug artifact model: instructions, source spans, and variable locations.
An ETHDebug runtime artifact is a list of instructions, each carrying its program
counter and a context describing the source range it was generated from. Mapping a
program counter back to Solidity means finding its instruction and reading that span.
Spans nest: a compiler attaches a whole-contract range to dispatcher and preamble instructions, so a span containing a given line is not the same thing as a span generated for it. Callers that resolve a source line to a program counter must rank candidates accordingly rather than taking the first intersecting span.
Structs§
Enums§
Functions§
- parse_
compilation_ sources - Maps every source id listed in an ETHDebug
compilationobject to its path. - parse_
ethdebug_ spec - parse_
multi_ contract_ spec - parse_
single_ contract_ spec - parse_
variable_ locations - read_
compilation_ source - Returns the contents of a source embedded in an ETHDebug
compilationobject.