nsIDebug

For use by consumers in scripted languages (JavaScript, Java, Python,
Perl, …).

@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.

Methods

assertion(aStr, aExpr, aFile, aLine)

Show an assertion and trigger nsIDebug.break().

Parameters

aStr assertion message
aExpr expression that failed
aFile file containing assertion
aLine line number of assertion

warning(aStr, aFile, aLine)

Show a warning.

Parameters

aStr warning message
aFile file containing assertion
aLine line number of assertion

break(aFile, aLine)

Request to break into a debugger.

Parameters

aFile file containing break request
aLine line number of break request

abort(aFile, aLine)

Request the process to trigger a fatal abort.

Parameters

aFile file containing abort request
aLine line number of abort request