-
Notifications
You must be signed in to change notification settings - Fork 144
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
debug wasm: Uncaught TypeError: WebAssembly.compile(): Argument 0 must be a buffer source #708
Comments
+1 on this issue
Extension version: Same setup and error, same observations where debugging works in chrome but fails in vscode |
The same happen (in nvim) with another implementation https://github.com/mfussenegger/nvim-dap |
Maybe the issue lies in https://github.com/microsoft/vscode-js-debug |
Hey folks, sorry for a slow response. Do you still experience the same issue with latest Deno? |
The same reproduction steps still produce the same error deno 1.35.1 |
Same error with with deno 1.33.4, here is an example: https://github.com/ahuigo/deno-debug-example. Bad case reproduce step:
This is tested by:
|
+1 for this on Deno 1.37.1 with the same steps to reproduce as people above. |
I can easily reproduce this with the
But when I click "debug" I get:
This is annoying because I'm trying to use |
I am getting the same error trying to use: export { transpile } from "https://deno.land/x/emit@0.37.0/mod.ts"; Deno 1.40.5 |
I thought i'd throw a work around out there while this awaits resolution. If possible, wrap the call throwing this error in its own Worker, this throws the WebAssembly out on a separate thread, and make the rest of the app debug-able. |
I posted a work around here: denoland/deno#21508 (comment) |
Describe the bug
Debug wasm within Vscode will throw this error:
When I debug it within chrome, it works well:
So, I guess that the deno plugin for vscode may have a bug.
To Reproduce
Here is a bad case example : https://github.com/ahuigo/deno-debug-example.
Expected behavior
Not throw any error. (When I debug it within chrome, it works well)
Versions
I tried both deno 1.23.1 and deno 1.24.3, same error:
My environment
The text was updated successfully, but these errors were encountered: