Struct xpcom::interfaces::nsIDebug2 [] [src]

#[repr(C)]
pub struct nsIDebug2 { /* fields omitted */ }

interface nsIDebug2 : nsISupports

/**
 *   For use by consumers in scripted languages (JavaScript, Java, Python,
 *   Perl, ...).
 *
 *   @note C/C++ consumers who are planning to use the nsIDebug2 interface with
 *   the "@mozilla.org/xpcom;1" contract should use NS_DebugBreak from xpcom
 *   glue instead.
 *
 */

Methods

impl nsIDebug2
[src]

[src]

Cast this nsIDebug2 to one of its base interfaces.

impl nsIDebug2
[src]

[src]

/**
     * Whether XPCOM was compiled with DEBUG defined.  This often
     * correlates to whether other code (e.g., Firefox, XULRunner) was
     * compiled with DEBUG defined.
     */

readonly attribute boolean isDebugBuild;

[src]

/**
     * The number of assertions since process start.
     */

readonly attribute long assertionCount;

[src]

/**
     * Whether a debugger is currently attached.
     * Supports Windows + Mac
     */

readonly attribute bool isDebuggerAttached;

[src]

/**
     * Show an assertion and trigger nsIDebug2.break().
     *
     * @param aStr assertion message
     * @param aExpr expression that failed
     * @param aFile file containing assertion
     * @param aLine line number of assertion
     */

void assertion (in string aStr, in string aExpr, in string aFile, in long aLine);

[src]

/**
     * Show a warning.
     *
     * @param aStr warning message
     * @param aFile file containing assertion
     * @param aLine line number of assertion
     */

void warning (in string aStr, in string aFile, in long aLine);

[src]

/**
     * Request to break into a debugger.
     *
     * @param aFile file containing break request
     * @param aLine line number of break request
     */

void break (in string aFile, in long aLine);

[src]

/**
     * Request the process to trigger a fatal abort.
     *
     * @param aFile file containing abort request
     * @param aLine line number of abort request
     */

void abort (in string aFile, in long aLine);

[src]

/**
     * Request the process to trigger a fatal panic!() from Rust code.
     *
     * @param aMessage the string to pass to panic!().
     */

void rustPanic (in string aMessage);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIDebug2
[src]

IID: nsIID = nsID(2520898581, 4347, 17123, [162, 133, 24, 190, 144, 165, 193, 11])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIDebug2
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIDebug2
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.