nspcc-dev/neo-go

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

オープン

#3,675 opened on 2024/11/12

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)Go (108 件のフォーク)auto 404
I2S4U3clienhancementhelp wantedvm

Repository metrics

Stars
 (132 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド