wasmer icon indicating copy to clipboard operation
wasmer copied to clipboard

Add support for step debugging and Virtual Machine introspection

Open huhlig opened this issue 5 years ago â€ĸ 12 comments

It would be desirable to be able to execute wasm instruction by instruction and expose the machine's internal instance memory space read only for debugging purposes as well as time sharing. Creation of a debug context containing the textualized Source code and a pointer to the current instruction would help as well.

huhlig avatar Feb 28 '19 17:02 huhlig

Yes! I completely agree. We definitely want to supply the ability to debug your code running within the wasmer runtime. We will update this issue as we start working on it.

lachlansneff avatar Feb 28 '19 22:02 lachlansneff

Being able to serialize the virtual machine runtime state in external calls (not only the memory after the call to the wasm binary has terminated, but when wasm calls into the environment again) would be amazing. https://github.com/perlin-network/life supports this

void4 avatar Apr 15 '19 00:04 void4

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 14 '21 13:07 stale[bot]

Feel free to reopen the issue if it has been closed by mistake.

stale[bot] avatar Aug 13 '21 13:08 stale[bot]

Wow this was completed! Do you guys have the docs for it?

huhlig avatar Aug 13 '21 13:08 huhlig

I don't think it is done. The stale bot closed it due to no recent activity. These bots do more harm than good IMO as they don't have the necessary context. All they do is make it seem like there are less issues than there really are.

bjorn3 avatar Aug 13 '21 14:08 bjorn3

Ahh I was confused that it was moved to Done rather than the Icebox.

huhlig avatar Aug 13 '21 20:08 huhlig

Not sure why it was marked as done, apologizes for that. @Hywan perhaps we need to update the stale bot? Or put a bigger window of time for closing stale tickets?

syrusakbary avatar Aug 13 '21 21:08 syrusakbary

We should have noticed the message from the bot and removed the stale label. It's a tool we are experiencing for the moment, but so far I'm happy with it. The issue is now re-opened, everything is fine :-).

Hywan avatar Aug 16 '21 07:08 Hywan

@Hywan is there a branch we can test this on?

kaimast avatar Aug 16 '21 21:08 kaimast

Revisit for milestone 2.x

syrusakbary avatar Nov 17 '21 17:11 syrusakbary