mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
When a breakpoint is hit, the script thread now pauses execution and notifies devtools clients with a "paused" event. The script thread enters a loop that processes devtools messages until a Resume command is received. This change does not implement manual pause Testing: Added new test Fixes: part of https://github.com/servo/servo/issues/36027 https://github.com/user-attachments/assets/c619db20-4579-4f77-aa60-0e43e6e7e575 Signed-off-by: atbrakhi <atbrakhi@igalia.com>
28 lines
891 B
Plaintext
28 lines
891 B
Plaintext
/* 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 DebuggerPauseEvent : Event {};
|
|
|
|
partial interface DebuggerGlobalScope {
|
|
undefined getFrameResult(
|
|
DebuggerPauseEvent event,
|
|
PauseFrameResult result);
|
|
|
|
undefined notifyBreakpointHit(PipelineIdInit pipelineId, PauseFrameResult result);
|
|
};
|
|
|
|
dictionary PauseFrameResult {
|
|
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;
|
|
};
|