rustwasm / wasm-bindgen

Facilitating high-level interactions between Wasm modules and JavaScript
https://rustwasm.github.io/docs/wasm-bindgen/
Apache License 2.0
7.84k stars 1.08k forks source link

How to debug CLI #4209

Closed RunDevelopment closed 3 weeks ago

RunDevelopment commented 1 month ago

Summary

How I can attach a debugger to the CLI for tests. I want to debug the JS code gen part but couldn't find any docs for debugging.

I'm using VSCode btw and I cannot figure it out.

Additional Details

I would also like to add how to do it to the docs once I know.