You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I encountered a crash in Deno when using a VS Code debugger. I could not reproduce it with Chrome DevTools remote debugger, it probably disconnects differently.
Steps to reproduce
Create a text file main.js with the following line:
throw"stuff"
Start a Deno debugging process with command: RUST_BACKTRACE=1 deno run --inspect-wait main.js
Open VS Code and create a VS Code launch configuration file .vscode/launch.json:
Open main.js in VS Code, set a breakpoint on first and only line (F9). Start debugging (F5).
At this point VS Code will connect to Deno for debugging, break on a breakpoint and work as intended.
Disconnect VS Code debugger (Shift+F5), allowing Deno execution to continue and evaluate throw "stuff".
Deno should panic. Here is full output from Deno in CLI.
Debugger listening on ws://127.0.0.1:9229/ws/090ead0b-891d-4c6c-bf33-f03144eaa005
Visit chrome://inspect to connect to the debugger.
Deno is waiting for debugger to connect.
Debugger session started.
Debugger session ended
============================================================
Deno has panicked. This is a bug in Deno. Please report this
at https://github.com/denoland/deno/issues/new.
If you can reliably reproduce this panic, include the
reproduction steps and re-run with the RUST_BACKTRACE=1 env
var set and include the backtrace in your report.
Platform: linux x86_64
Version: 2.1.4
Args: ["deno", "run", "--inspect-wait", "main.js"]
thread 'main' panicked at /build/deno-2.1.4-vendor.tar.gz/deno_core/inspector.rs:258:54:
called `Option::unwrap()` on a `None` value
stack backtrace:
0: rust_begin_unwind
1: core::panicking::panic_fmt
2: core::panicking::panic
3: core::option::unwrap_failed
4: deno_core::runtime::jsruntime::JsRuntimeState::with_inspector
5: deno_core::ops_builtin_v8::op_dispatch_exception::op_dispatch_exception::v8_fn_ptr
6: <unknown>
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
The text was updated successfully, but these errors were encountered:
Version: Deno 2.1.4
Hi I encountered a crash in Deno when using a VS Code debugger. I could not reproduce it with Chrome DevTools remote debugger, it probably disconnects differently.
Steps to reproduce
Create a text file
main.js
with the following line:Start a Deno debugging process with command:
RUST_BACKTRACE=1 deno run --inspect-wait main.js
Open VS Code and create a VS Code launch configuration file
.vscode/launch.json
:Open
main.js
in VS Code, set a breakpoint on first and only line (F9). Start debugging (F5).At this point VS Code will connect to Deno for debugging, break on a breakpoint and work as intended.
Disconnect VS Code debugger (Shift+F5), allowing Deno execution to continue and evaluate
throw "stuff"
.Deno should panic. Here is full output from Deno in CLI.
The text was updated successfully, but these errors were encountered: