Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic inspector support #2991

Closed
wants to merge 1 commit into from
Closed

Conversation

piscisaureus
Copy link
Member

Continuation of #2696.

@piscisaureus piscisaureus changed the title Add experimental inspector support #2 WIP: Add inspector support [2] Sep 20, 2019
@piscisaureus piscisaureus force-pushed the inspector branch 2 times, most recently from ff413b6 to df38691 Compare October 4, 2019 21:03
@ry ry changed the title WIP: Add inspector support [2] Basic inspector support Oct 4, 2019
Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Thank you @mtharrison - sorry this took so long for us to get landed!

@bartlomieju
Copy link
Member

🎉 this is awesome!

I tested it with these two commands:

$ target/debug/deno -A --debug https://deno.land/[email protected]/http/file_server.ts
Debugger listening on ws://127.0.0.1:9888/97690037-256e-4e27-add0-915ca5421e2f
Inspector frontend connected.

This one works, brilliantly.

But I can't get this one to work:

$ target/debug/deno --debug tools/deno_tcp.ts
Debugger listening on ws://127.0.0.1:9888/97690037-256e-4e27-add0-915ca5421e2f
Inspector frontend connected.
thread 'tokio-runtime-worker-0' panicked at 'error binding to 127.0.0.1:9888: error creating server listener: Address already in use (os error 48)', /Users/biwanczuk/.cargo/registry/src/github.com-1ecc6299db9ec823/warp-0.1.20/src/server.rs:206:27
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
Waiting for debugger to disconnect...
thread 'main' panicked at 'internal error: entered unreachable code', /Users/biwanczuk/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.1.22/src/runtime/threadpool/mod.rs:296:26
thread 'tokio-runtime-worker-3' panicked at 'unexpected state while aborting task: Complete', /Users/biwanczuk/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-threadpool-0.1.15/src/task/mod.rs:216:21

As soon as I click "Inspect" in devtools I get above error.

@piscisaureus
Copy link
Member Author

@bartlomieju
There are many known issues with this patch.
We landed it to have a starting point to iterate on.

Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bert discovered a problem - there's a debugger thread that's running unconditionally (even when --debug isn't running). This is causing a little failure in tests/workers_startup_bench.ts but it's indicative of a bigger design problem. Fix isn't super easy - so this will take a bit more to land - and I should have been reviewing more carefully : )

@eugeneo
Copy link

eugeneo commented Oct 5, 2019 via email

@ry
Copy link
Member

ry commented Oct 21, 2019

Closing this because we are unable to get it green. We will try again soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants