mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
script: Create a debugger script for the SpiderMonkey Debugger API
Co-authored-by: atbrakhi <atbrakhi@igalia.com> Signed-off-by: Delan Azabani <dazabani@igalia.com>
This commit is contained in:
parent
e8c50390f6
commit
4d7a514923
10 changed files with 179 additions and 6 deletions
|
@ -109,6 +109,8 @@ pub enum Resource {
|
|||
DirectoryListingHTML,
|
||||
/// A HTML page that is used for the about:memory url.
|
||||
AboutMemoryHTML,
|
||||
/// RPC script for the Debugger API on behalf of devtools.
|
||||
DebuggerJS,
|
||||
}
|
||||
|
||||
impl Resource {
|
||||
|
@ -123,6 +125,7 @@ impl Resource {
|
|||
Resource::CrashHTML => "crash.html",
|
||||
Resource::DirectoryListingHTML => "directory-listing.html",
|
||||
Resource::AboutMemoryHTML => "about-memory.html",
|
||||
Resource::DebuggerJS => "debugger.js",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -167,6 +170,7 @@ fn resources_for_tests() -> Box<dyn ResourceReaderMethods + Sync + Send> {
|
|||
Resource::AboutMemoryHTML => {
|
||||
&include_bytes!("../../../resources/about-memory.html")[..]
|
||||
},
|
||||
Resource::DebuggerJS => &include_bytes!("../../../resources/debugger.js")[..],
|
||||
}
|
||||
.to_owned()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue