mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Implement a WebSocket server for debugging.
This commit is contained in:
parent
77651959e2
commit
8856671f2e
7 changed files with 100 additions and 0 deletions
|
@ -28,6 +28,7 @@ pub extern crate canvas;
|
|||
pub extern crate canvas_traits;
|
||||
pub extern crate compositing;
|
||||
pub extern crate constellation;
|
||||
pub extern crate debugger;
|
||||
pub extern crate devtools;
|
||||
pub extern crate devtools_traits;
|
||||
pub extern crate euclid;
|
||||
|
@ -125,6 +126,9 @@ impl<Window> Browser<Window> where Window: WindowMethods + 'static {
|
|||
let time_profiler_chan = profile_time::Profiler::create(&opts.time_profiling,
|
||||
opts.time_profiler_trace_path.clone());
|
||||
let mem_profiler_chan = profile_mem::Profiler::create(opts.mem_profiler_period);
|
||||
if let Some(port) = opts.debugger_port {
|
||||
debugger::start_server(port)
|
||||
}
|
||||
let devtools_chan = opts.devtools_port.map(|port| {
|
||||
devtools::start_server(port)
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue