Skip to content

devtools: Unify pause handling for breakpoints and interrupt #42599

Merged
atbrakhi merged 3 commits into
servo:mainfrom
eerii:pause_in_breakpoints
Feb 23, 2026
Merged

devtools: Unify pause handling for breakpoints and interrupt #42599
atbrakhi merged 3 commits into
servo:mainfrom
eerii:pause_in_breakpoints

Conversation

@eerii
Copy link
Copy Markdown
Member

@eerii eerii commented Feb 13, 2026

The pause debugger screen should be shown for both pausing manually (interrupt) and hitting a breakpoint.

Reuse the logic for pausing breakpoints to pause the debugger when the user manually clicks the pause button.

Rename the pause event to interrupt to match the language of the DevTools client and to avoid confusion with paused frames, which can happen on interrupt or on a breakpoint.

2026-02-19.09-24-32.mp4

Testing: New DevTools test and manual testing.
Part of: #36027

cc @atbrakhi

Reuse the logic for pausing breakpoints to pause the debugger when the
user manually clicks the pause button (interrupt).

Rename the pause event to interrupt to match the language of the
DevTools client and to avoid confusion with paused frames, which can
happen on interrupt or on a breakpoint.

Signed-off-by: eri <[email protected]>
@eerii eerii force-pushed the pause_in_breakpoints branch from 34d1e5b to e5b1ed7 Compare February 19, 2026 08:46
@eerii eerii marked this pull request as ready for review February 19, 2026 08:48
@eerii eerii requested a review from gterzian as a code owner February 19, 2026 08:48
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Feb 19, 2026
@eerii eerii changed the title devtools: Improve pause handling for breakpoints and interrupts devtools: Unify pause handling for breakpoints and interrupt Feb 19, 2026
Comment thread resources/debugger.js Outdated
Comment thread resources/debugger.js Outdated
Copy link
Copy Markdown
Member

@atbrakhi atbrakhi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great Eri! Let's add a test for manual pause before landing :)

Comment thread components/devtools/lib.rs
Copy link
Copy Markdown
Member

@atbrakhi atbrakhi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for including test! Just some small comments but we should be able to land it after!

Comment thread components/devtools/lib.rs Outdated
Comment thread python/servo/devtools_tests.py Outdated
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Feb 22, 2026
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Feb 23, 2026
@atbrakhi atbrakhi added this pull request to the merge queue Feb 23, 2026
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Feb 23, 2026
Merged via the queue into servo:main with commit 92259af Feb 23, 2026
33 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Feb 23, 2026
@eerii eerii deleted the pause_in_breakpoints branch February 23, 2026 10:58
@eerii eerii mentioned this pull request Mar 4, 2026
@delan
Copy link
Copy Markdown
Member

delan commented Mar 24, 2026

hi! just to confirm, is it this patch that makes clicking the pause button actually pause execution, while #42007 just made the button appear to work in the client? or was pausing execution done in another patch, and this patch is only a rework plus adding tests?

@eerii
Copy link
Copy Markdown
Member Author

eerii commented Mar 24, 2026

Exactly! While pausing was done in #42580, that only worked for breakpoints. This made it work when you click the pause button.

offline-ant pushed a commit to offline-ant/havi that referenced this pull request Jun 4, 2026
…2599)

The pause debugger screen should be shown for both pausing manually
(interrupt) and hitting a breakpoint.

Reuse the logic for pausing breakpoints to pause the debugger when the
user manually clicks the pause button.

Rename the pause event to interrupt to match the language of the
DevTools client and to avoid confusion with paused frames, which can
happen on interrupt or on a breakpoint.


https://github.com/user-attachments/assets/ceb0007d-0e57-44d6-a159-55980ff8b517

Testing: New DevTools test and manual testing.
Part of: servo#36027

cc @atbrakhi

---------

Signed-off-by: eri <[email protected]>
Co-authored-by: atbrakhi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-review There is new code that needs to be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants