nsISupports
Last changed in Gecko 1.7 Note: C/C++ consumers who are planning to use the nsIDebug
interface with the @mozilla.org/xpcom;1
contract should use NS_DebugBreak()
from XPCOM glue instead, or alternatively the NS_ABORT
, NS_ASSERTION
, NS_BREAK
, and NS_WARNING
macros, which also call NS_DebugBreak()
if used in a debugging build.
void abort(in string aFile, in long aLine); |
void assertion(in string aStr, in string aExpr, in string aFile, in long aLine); |
void break(in string aFile, in long aLine); |
void warning(in string aStr, in string aFile, in long aLine); |
Requests the process to trigger a fatal abort
.
void abort( in string aFile, in long aLine );
aFile
abort
request.aLine
abort
request.Shows an assertion and triggers optional behavior based on the XPCOM_DEBUG_BREAK
environment variable, defaulting to calling break()
on Windows and OS/2 and warning on other platforms.
void assertion( in string aStr, in string aExpr, in string aFile, in long aLine );
aStr
assertion
message.aExpr
aFile
assertion
.aLine
assertion
.Requests the software break into a debugger. If no debugger is running then this usually results in a program crash. However, on Windows a dialog is first presented giving the user the option of aborting, breaking, or ignoring the request. The dialog can be suppressed by use of the windbgdlg registry key. This allows the debugger to be attached before the software break.
void break( in string aFile, in long aLine );
aFile
break
request.aLine
break
request.Shows a warning.
void warning( in string aStr, in string aFile, in long aLine );
aStr
warning
message.aFile
warning
.aLine
warning
.