• Create and return an IDbgProvider which will throw an exception with the log the message when the level is less than the maximum defined. Which defaults to DbgLevel.Error, so all Critical, Terminal and Error.

    Example

    import { $Dbg } from "@nevware21/ts-debug";
    import { createThrowProvider } from "@nevware21/ts-debug-provider";

    // Add the throw provider to the default $Dbg instance, this will
    // cause any message which is received up to the maximum error level
    // to ca
    $Dbg.addProvider(createThrowProvider());

    // throws an exception with "Error Message"
    $dbgError("Error Message");

    Parameters

    Returns IDbgProvider

    A new IDbgProvider instance

Generated using TypeDoc