nspcc-dev/neo-go

AddBreakPoint to apply to all context with the same `prog`

開放

#3,675 建立於 2024年11月12日

 (1 則留言) (0 個反應) (0 位負責人)Go (108 個分叉)auto 404
I2S4U3clienhancementhelp wantedvm

倉庫指標

星標
 (132 顆星)
PR 合併指標
 (平均合併 4天 19小時) (30 天內合併 16 個 PR)

描述

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

I'm always frustrated when breakpoints set for a given prog (=smart contract) don't hit because they are registered for the current context and not globally for the smart contract.

Describe the solution you'd like

I'd like an AddBreakPoint on VM which allows to set a global breakpoint for a given contract (similar to the C# one).

Describe alternatives you've considered

Create AddBreakpoint / RemoveBreakPoint on Context.

Additional context

Imagine an IDE with NEO smart contract debugger support build on neo-go. The IDE tells what addresses to put a break point on, then runs the debugger waiting for a break point to hit. Currently it won't hit any break points except for those in the entry function.

貢獻者指南