Skip to content
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

Groundwork for WASI debugging #66

Draft
wants to merge 18 commits into
base: main
Choose a base branch
from
Draft

Groundwork for WASI debugging #66

wants to merge 18 commits into from

Conversation

rvanasa
Copy link
Contributor

@rvanasa rvanasa commented Mar 13, 2023

This PR adapts the logic from this WASI polyfill file for a headless Node.js environment.

Progress:

  • Refactor to TypeScript
  • Decouple Wasm functionality from user interface
  • Expose hexdump() and show() functions
  • Allow custom handling of debug_print output
  • Run WASI modules from a file for quick testing (creating tests/wasm/Debug.test.wasm will activate another unit test)

Future work:

  • Source maps?
  • JS return value?
  • Breakpoints?
  • Stack inspection?

@github-actions
Copy link

github-actions bot commented Mar 13, 2023

size-limit report 📦

Path Size
lib/index.js 15.3 KB (+13.05% 🔺)
packages/latest/base.json 87.82 KB (0%)
versions/latest/moc.min.js 487.72 KB (0%)
versions/latest/moc_interpreter.min.js 280.9 KB (0%)
versions/latest/didc.min.js 60.46 KB (0%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant