Skip to content

Conversation

@delan
Copy link
Member

@delan delan commented Aug 21, 2025

in the SpiderMonkey Debugger API, there is a separate Debugger.Script object for each function in a script, forming a tree of Script objects. since we were only issuing getPossibleBreakpoints() queries to the root Script object for each script, we were failing to report locations inside functions as available for setting breakpoints.

this patch fixes that by recursively issuing the getPossibleBreakpoints() requests over the getChildScripts() tree.

Testing: this patch adds a new devtools test

@delan delan requested a review from atbrakhi August 21, 2025 10:23
Co-authored-by: atbrakhi <atbrakhi@igalia.com>
Signed-off-by: Delan Azabani <dazabani@igalia.com>
@delan delan force-pushed the devtools-fix-available-breakpoints branch from 361c214 to e2ea32e Compare August 21, 2025 10:34
@atbrakhi atbrakhi added this pull request to the merge queue Aug 21, 2025
Merged via the queue into main with commit 4ba34b0 Aug 21, 2025
22 checks passed
@atbrakhi atbrakhi deleted the devtools-fix-available-breakpoints branch August 21, 2025 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants