From 4a17c930882c5765e5fdedb50b6493469f61e32d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 12 Dec 2022 15:33:30 +0100 Subject: feat: add `--inspect-wait` flag (#17001) This commit adds new "--inspect-wait" flag which works similarly to "--inspect-brk" in that it waits for inspector session to be established before running code. However it doesn't break on the first statement of user code, but instead runs it as soon as a session is established. --- runtime/examples/hello_runtime.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'runtime/examples') diff --git a/runtime/examples/hello_runtime.rs b/runtime/examples/hello_runtime.rs index d71cc467a..371ecf63f 100644 --- a/runtime/examples/hello_runtime.rs +++ b/runtime/examples/hello_runtime.rs @@ -54,6 +54,7 @@ async fn main() -> Result<(), AnyError> { create_web_worker_cb, maybe_inspector_server: None, should_break_on_first_statement: false, + should_wait_for_inspector_session: false, module_loader, npm_resolver: None, get_error_class_fn: Some(&get_error_class_name), -- cgit v1.2.3