@nevware21/ts-debug
    Preparing search index...

    Interface IDbgProvider

    Specifies the interface for debug provider

    interface IDbgProvider {
        _dbgCbAdd?: (dbg: IDbg) => void;
        _dbgCbRm?: (dbg: IDbg) => void;
        chkLvl?: (theLevel: number) => boolean;
        log: (ctx: IDbgLogCtx, message: string, data?: any) => void;
    }
    Index

    Properties

    _dbgCbAdd?: (dbg: IDbg) => void

    Optional function called when the provider is added to an IDbg instance

    Type Declaration

      • (dbg: IDbg): void
      • Parameters

        • dbg: IDbg

          The dbg instance

        Returns void

    _dbgCbRm?: (dbg: IDbg) => void

    Optional function called when the provider is removed from a IDbg instance

    Type Declaration

      • (dbg: IDbg): void
      • Parameters

        • dbg: IDbg

          The dbg instance

        Returns void

    chkLvl?: (theLevel: number) => boolean

    Checks and returns whether any logging will be performed at the specified level by this provider instance.

    Type Declaration

      • (theLevel: number): boolean
      • Parameters

        • theLevel: number

          The level to check

        Returns boolean

        true if at least one log entry would be recorded otherwise false

    log: (ctx: IDbgLogCtx, message: string, data?: any) => void

    Log a message at the provided Debug Level to the debug provider with an optional data details to be associated with the message.

    Type Declaration

      • (ctx: IDbgLogCtx, message: string, data?: any): void
      • Parameters

        • ctx: IDbgLogCtx

          The context for the log message

        • message: string

          The message to display to the log

        • Optionaldata: any

          An optional data element to be associated with the message.

        Returns void