-
Notifications
You must be signed in to change notification settings - Fork 782
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VM: Support for better debugging and state manipulation #410
Comments
Question is do wan't something like a debugging options-object for these calls or just expand the previous optional arguments? |
@holgerd77 @axic Would it make sense to extract |
Actually these ideas proposed here are so simple that I do not understand why we need 7 years to implement/consider them. 😂 @jochem-brouwer can you please take over responsibility of this issue and decide if we want to give at least the "initial stack values/inital memory" part of the suggested additions 2-3 hours of implementation time and add to the export interface EVMRunCodeOpts extends EVMRunOpts {
/*
* The initial program counter. Defaults to `0`
*/
pc?: number
} (you can also very much decide for sure that we do not want right now out of non-followed-up demand and rather simply close here) |
I'm not really sure if we want to add this. On one side, I have had the general idea of allowing arbitrary For the case raised here, set an initial stack and program counter: this is easy to do, but the only use case I would see is to test simple opcodes (test I think for most, if not all, situations setting up the pre-environment and then running a |
As a user, I need better support for debugging and state manipulation.
For
vm.runCode
, I need the ability to:Also nice to have would be the ability to get information about memory reads or writes inside
step
events, this can be as simple asAnother feature I thinking about is the ability to 'pause' and 'resume' an execution.
The text was updated successfully, but these errors were encountered: