script: Create a debugger script for the SpiderMonkey Debugger API#38331
Merged
script: Create a debugger script for the SpiderMonkey Debugger API#38331
Conversation
Co-authored-by: atbrakhi <[email protected]> Signed-off-by: Delan Azabani <[email protected]>
This was referenced Jul 28, 2025
delan
commented
Jul 30, 2025
jdm
approved these changes
Jul 30, 2025
Signed-off-by: Delan Azabani <[email protected]>
Signed-off-by: Delan Azabani <[email protected]>
Signed-off-by: Delan Azabani <[email protected]>
Signed-off-by: Delan Azabani <[email protected]>
delan
added a commit
that referenced
this pull request
Jul 31, 2025
…38331) (linux) {"fail_fast": false, "matrix": [{"name": "Linux", "workflow": "linux", "wpt": false, "profile": "release", "unit_tests": false, "build_libservo": false, "bencher": false, "build_args": "", "wpt_args": "", "number_of_wpt_chunks": 20}]}
minghuaw
pushed a commit
to minghuaw/servo
that referenced
this pull request
Aug 1, 2025
…ervo#38331) to use the [SpiderMonkey Debugger API](https://firefox-source-docs.mozilla.org/js/Debugger/), we need to call it from an internal debugger script that we will supply. this script must run in the same runtime as the debuggee(s), but in a separate [compartment](https://udn.realityripple.com/docs/Mozilla/Projects/SpiderMonkey/Compartments) ([more details](https://hacks.mozilla.org/2020/03/future-proofing-firefoxs-javascript-debugger-implementation/)). this patch defines a new DebuggerGlobalScope type and a new debugger script resource. when creating each script thread, we create a debugger global, load the debugger script from resources/debugger.js, and run that script in the global to initialise the Debugger API. subsequent patches will use the debugger script as an RPC mechanism for the Debugger API. Testing: no testable effects yet, but will be used in servo#37667 Fixes: part of servo#36027 --------- Signed-off-by: Delan Azabani <[email protected]> Co-authored-by: atbrakhi <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
to use the SpiderMonkey Debugger API, we need to call it from an internal debugger script that we will supply. this script must run in the same runtime as the debuggee(s), but in a separate compartment (more details).
this patch defines a new DebuggerGlobalScope type and a new debugger script resource. when creating each script thread, we create a debugger global, load the debugger script from resources/debugger.js, and run that script in the global to initialise the Debugger API.
subsequent patches will use the debugger script as an RPC mechanism for the Debugger API.
Testing: no testable effects yet, but will be used in #37667
Fixes: part of #36027