mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
devtools: Unify pause handling for breakpoints and interrupt (#42599)
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: #36027 cc @atbrakhi --------- Signed-off-by: eri <eri@igalia.com> Co-authored-by: atbrakhi <atbrakhi@igalia.com>
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
// This interface is entirely internal to Servo, and should not be accessible to
|
||||
// web pages.
|
||||
[Exposed=DebuggerGlobalScope]
|
||||
interface DebuggerInterruptEvent : Event {};
|
||||
|
||||
partial interface DebuggerGlobalScope {
|
||||
undefined pauseAndRespond(
|
||||
PipelineIdInit pipelineId,
|
||||
PausedFrame result,
|
||||
boolean is_breakpoint);
|
||||
};
|
||||
|
||||
dictionary PausedFrame {
|
||||
required unsigned long column;
|
||||
required DOMString displayName;
|
||||
required unsigned long line;
|
||||
required boolean onStack;
|
||||
required boolean oldest;
|
||||
required boolean terminated;
|
||||
required DOMString type_;
|
||||
required DOMString url;
|
||||
};
|
||||
Reference in New Issue
Block a user