trufflesuite / truffle-debugger

Core functionality for debugging Solidity files built with Truffle
67 stars 12 forks source link

Improve edge case handling for source location lookup #63

Closed gnidan closed 6 years ago

gnidan commented 6 years ago

Required for trufflesuite/truffle#897

Background: solc's sourcemaps can refer to file index -1, which isn't handled by the debugger right now. Discovered this with v0.4.22, which seems to use that index more often.

Generally, this adds more well-formed defaults in place of undefined, and notably skips over undefined nodes when stepping next.

Also: fix mocha-webpack source maps

gnidan commented 6 years ago

Thanks!