Skip to content

Expose the remote debugger URL for content shell #297

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

Closed
nex3 opened this issue Jul 22, 2015 · 0 comments
Closed

Expose the remote debugger URL for content shell #297

nex3 opened this issue Jul 22, 2015 · 0 comments
Labels
type-enhancement A request for a change that isn't a bug
Milestone

Comments

@nex3
Copy link
Member

nex3 commented Jul 22, 2015

In addition to Observatory (#295), it may be useful to inspect the HTML contents of the page with content shell. To enable this, we should enable its remote debugger and print out the debugger's URL when the test runner is paused for debugging (as in #294).

This is complicated by the fact that content shell doesn't support accessing an auto-allocated port. To work around this, we'll have to do some sort of manual port allocation and collision recovery. Luckily, content shell does print a recognizable error message when its call to bind() fails:

[31788:31805:0722/150225:79307133024:ERROR:socket_libevent.cc(122)] bind() returned an error, errno=98: Address already in use
[31788:31805:0722/150225:79307133110:ERROR:devtools_http_handler_impl.cc(728)] Cannot start http server for devtools. Stop devtools.
@nex3 nex3 added the type-enhancement A request for a change that isn't a bug label Jul 22, 2015
@nex3 nex3 added this to the 0.12.4 milestone Jul 22, 2015
@nex3 nex3 closed this as completed in bdda5ca Aug 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

1 participant