Public Member Functions

nsIDebug Interface Reference

import "nsIDebug.idl";

Inheritance diagram for nsIDebug:

List of all members.

Public Member Functions

void assertion (in string aStr, in string aExpr, in string aFile, in long aLine)
 Show an assertion and trigger nsIDebug.break().
void warning (in string aStr, in string aFile, in long aLine)
 Show a warning.
void break (in string aFile, in long aLine)
 Request to break into a debugger.
void abort (in string aFile, in long aLine)
 Request the process to trigger a fatal abort.

Detailed Description

Status:
FROZEN 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.

Member Function Documentation

void nsIDebug::abort ( in string  aFile,
in long  aLine 
)

Request the process to trigger a fatal abort.

Parameters:
aFile file containing abort request
aLine line number of abort request
void nsIDebug::assertion ( in string  aStr,
in string  aExpr,
in string  aFile,
in long  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
void nsIDebug::break ( in string  aFile,
in long  aLine 
)

Request to break into a debugger.

Parameters:
aFile file containing break request
aLine line number of break request
void nsIDebug::warning ( in string  aStr,
in string  aFile,
in long  aLine 
)

Show a warning.

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

The documentation for this interface was generated from the following file: