diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2021-12-17 18:43:25 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-17 18:43:25 +0100 |
| commit | f3cd9a94b5da06282520b2049fb97ef61ec021b2 (patch) | |
| tree | 4e3ed06adef017a94e81350dc24a45d531ba355a | |
| parent | ca1fbdd63677b78c1697ce74197c3e3860962a4b (diff) | |
fix: inspector prompts (#13123)
This commit fixes prompts printed to the terminal when
running with "--inspect" or "--inspect-brk" flags.
When debugger disconnects error is no longer printed as
users don't care about the reason debugger did disconnect.
A message suggesting to go to "chrome://inspect" is printed
if debugger is active.
Additionally and information that process is waiting for
debugger to connect is printed if running with "--inspect-brk"
flag.
| -rw-r--r-- | cli/tests/integration/inspector_tests.rs | 12 | ||||
| -rw-r--r-- | runtime/inspector_server.rs | 27 | ||||
| -rw-r--r-- | runtime/web_worker.rs | 6 | ||||
| -rw-r--r-- | runtime/worker.rs | 6 |
4 files changed, 39 insertions, 12 deletions
diff --git a/cli/tests/integration/inspector_tests.rs b/cli/tests/integration/inspector_tests.rs index e901e2633..f5365ac99 100644 --- a/cli/tests/integration/inspector_tests.rs +++ b/cli/tests/integration/inspector_tests.rs @@ -97,6 +97,8 @@ async fn inspector_break_on_first_line() { use TestStep::*; let test_steps = vec