Bug 1833854 - Part 4: Move all code that deals with maintaining invariants into a...
[gecko.git] / devtools / platform / IJSDebugger.idl
blobec309a315f92ceb282a6adcac44ee36a60eb31af
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #include "nsISupports.idl"
7 /**
8 * Do not use this interface. Instead, write:
9 * const { addDebuggerToGlobal } = ChromeUtils.importESModule(
10 * "resource://gre/modules/jsdebugger.sys.mjs"
11 * );
12 * addDebuggerToGlobal(global);
14 [scriptable, uuid(a36fa816-31da-4b23-bc97-6412771f0867)]
15 interface IJSDebugger : nsISupports
17 /**
18 * Define the global Debugger constructor on a given global.
20 [implicit_jscontext]
21 void addClass(in jsval global);