Bumping manifests a=b2g-bump
[gecko.git] / xpcom / base / nsIDebug.idl
blobe4055422e129af93bd63bb5296cc1363f21c56d5
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"
8 /**
9 * For use by consumers in scripted languages (JavaScript, Java, Python,
10 * Perl, ...).
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
14 * glue instead.
18 [scriptable, uuid(3bf0c3d7-3bd9-4cf2-a971-33572c503e1e)]
19 interface nsIDebug : nsISupports
21 /**
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,
31 in string aExpr,
32 in string aFile,
33 in long aLine);
35 /**
36 * Show a warning.
38 * @param aStr warning message
39 * @param aFile file containing assertion
40 * @param aLine line number of assertion
42 void warning(in string aStr,
43 in string aFile,
44 in long aLine);
46 /**
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,
53 in long aLine);
55 /**
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,
62 in long aLine);