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/. */
6 #include
"nsISupports.idl"
9 * For use by consumers in scripted languages (JavaScript, Java, Python,
12 * @note C/C++ consumers who are planning to use the nsIDebug interface with
13 * the "@mozilla.org/xpcom;1" contract should use NS_DebugBreak from xpcom
18 [scriptable
, uuid(3bf0c3d7
-3bd9
-4cf2
-a971
-33572c503e1e
)]
19 interface nsIDebug
: nsISupports
22 * Show an assertion and trigger nsIDebug.break().
24 * @param aStr assertion message
25 * @param aExpr expression that failed
26 * @param aFile file containing assertion
27 * @param aLine line number of assertion
30 void assertion
(in string aStr
,
38 * @param aStr warning message
39 * @param aFile file containing assertion
40 * @param aLine line number of assertion
42 void warning
(in string aStr
,
47 * Request to break into a debugger.
49 * @param aFile file containing break request
50 * @param aLine line number of break request
52 void break
(in string aFile
,
56 * Request the process to trigger a fatal abort.
58 * @param aFile file containing abort request
59 * @param aLine line number of abort request
61 void abort
(in string aFile
,