mirror of
https://github.com/servo/servo
synced 2026-04-25 17:15:48 +02:00
Listen for `setBreakpoint` on `debugger.js` and add the relevant WebIDLs and Servo counterparts to trigger this event and notify SpiderMonkey. Implement `find_source` for `SourceManager` and `find_offset` for `SourceActor`. Testing: Manual testing and `./mach test-devtools` (note, the latter seems to have some failing tests, we are investigating this, but this patch doesn't add any new failure). Fixes: Part of #36027 --------- Signed-off-by: eri <eri@igalia.com> Co-authored-by: atbrakhi <atbrakhi@igalia.com>
26 lines
980 B
Plaintext
26 lines
980 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 DebuggerGetPossibleBreakpointsEvent : Event {
|
|
readonly attribute unsigned long spidermonkeyId;
|
|
};
|
|
|
|
partial interface DebuggerGlobalScope {
|
|
undefined getPossibleBreakpointsResult(
|
|
DebuggerGetPossibleBreakpointsEvent event,
|
|
sequence<RecommendedBreakpointLocation> result);
|
|
};
|
|
|
|
// <https://firefox-source-docs.mozilla.org/js/Debugger/Debugger.Script.html#getpossiblebreakpoints-query>
|
|
dictionary RecommendedBreakpointLocation {
|
|
required unsigned long scriptId;
|
|
required unsigned long offset;
|
|
required unsigned long lineNumber;
|
|
required unsigned long columnNumber;
|
|
required boolean isStepStart;
|
|
};
|