Deno debugging failure: Argument 0 must be a buffer source
I have TWO Deno project with and cannot use the debugger with ONE of them. One project debugs fine, the other does not. I do not know where to start to mitigate the problem.
I see this problem with VS Code fronting the debugger and by using
chrome://inspect
directly.
First, the error message:
System details:
Deno 1.33.2 (have tried 1.33.1, too)
VS Code 1.78.1 (and the previous version, as well)
Plugin: Deno Plugin latest
OS: both Linux and Windows
The upshot is that there is something about this specific project that is causing a bug with the debugger. I don't know to whom I should report the problem (Deno or Google/Chrome). I'd be satisfied with a workaround to be able to debug it again, but I do not know where to start.
Much thanks.3 Replies
I've narrowed the issue down to DAX:
Debug with
deno run --inspect-brk -A example.ts
However, I can now run longer running deno apps with --inspect
-- so that fixed my blocking problem with debugging for now. I still think there's a bug somewhere with Deno, Dax, the debugger in Chrome, etc.GitHub
deno_emit fails depending on whether or not a breakpoint is set. · ...
Not sure if this is a Deno issue, or a deno_emit issue, but it seems like debugging shouldn't affect the code like this so I'm assuming this is an issue with Deno. To reproduce: create emit...
yes, that's it. Thanks!