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. --- cli/tests/testdata/inspector/inspect_wait.js | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 cli/tests/testdata/inspector/inspect_wait.js (limited to 'cli/tests/testdata/inspector/inspect_wait.js') diff --git a/cli/tests/testdata/inspector/inspect_wait.js b/cli/tests/testdata/inspector/inspect_wait.js new file mode 100644 index 000000000..e2b10199c --- /dev/null +++ b/cli/tests/testdata/inspector/inspect_wait.js @@ -0,0 +1,2 @@ +Deno.writeTextFileSync("./hello.txt", "hello world"); +console.error("did run"); -- cgit v1.2.3