Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImplement a WebSocket server for debugging. #13204
Conversation
highfive
commented
Sep 8, 2016
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @emilio (or someone else) soon. |
|
-S-awaiting-review +S-needs-code-changes Reviewed 6 of 6 files at r1. components/debugger/lib.rs, line 6 [r1] (raw file):
http://doc.crates.io/manifest.html#building-dynamic-or-static-libraries components/servo/Cargo.lock, line 475 [r1] (raw file):
Run components/servo/lib.rs, line 129 [r1] (raw file):
components/util/opts.rs, line 570 [r1] (raw file):
I would prefer Comments from Reviewable |
I am not sure how to interpret this. Are you saying I shouldn't use crate_type here (note that I've done so because the devtools component does)? Please clarify.
Should we change the surrounding code (i.e. line 132) to use if let as well?
How about --remote-debugging-port? This is consistent what Chrome uses, and avoids the name clashes you mentioned. |
|
-S-awaiting-review +S-needs-code-changes +S-fails-tidy Reviewed 3 of 3 files at r2. components/debugger/lib.rs, line 6 [r1] (raw file):
|
Want to watch the new stuff coming in servo/servo#13204 r? @jdm
| } | ||
|
|
||
| fn run_server(port: u16) { | ||
| let server = Server::bind(("127.0.0.1", port)).unwrap();; |
This comment has been minimized.
This comment has been minimized.
|
-S-awaiting-review +S-needs-code-changes Reviewed 5 of 5 files at r3. Comments from Reviewable |
|
@bors-servo: r+ Reviewed 4 of 4 files at r4. Comments from Reviewable |
|
|
Implement a WebSocket server for debugging. <!-- Please describe your changes on the following line: --> This pull request adds a very simple WebSocket server to Servo, that we intend to use for debugging. It currently only echoes back messages, but eventually we want this server to implement the Chrome Debugging Protocol. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because this is a prototype. <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13204) <!-- Reviewable:end -->
|
|
ejpbruel commentedSep 8, 2016
•
edited by larsbergstrom
This pull request adds a very simple WebSocket server to Servo, that we intend to use for debugging. It currently only echoes back messages, but eventually we want this server to implement the Chrome Debugging Protocol.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is