nspcc-dev / neo-go

Go Node and SDK for the Neo blockchain
MIT License
123 stars 79 forks source link

Integrate debug info into `contract inspect` CLI #3609

Open AnnaShaleva opened 1 month ago

AnnaShaleva commented 1 month ago

Is your feature request related to a problem? Please describe.

contract inspect outputs instructions offsets, but does not outputs source code lines. It's hard to debug contracts having just instructions and their offsets.

Describe the solution you'd like

Take source code lines from debug info by corresponding instructions offsets. Print them along with parsed contract instructions.

Describe alternatives you've considered

No alternatives.