Interface IDbgCallbackProviderConfig

Defines the configuration options for the callback debug provider.

Example

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

// Set the config to enable debug messages to be displayed
// to the console
let dbgConfig = {
lvl: DblLevel.Debug,
cb: () => {
}
};

let provider = createCallbackProvider(dbgConfig);
$Dbg.addProvider(provider);

Hierarchy

Properties

Properties

cb: ((logDetails) => void)

Type declaration

    • (logDetails): void
    • The callback function to call when logging a message

      Parameters

      Returns void

lvl?: number

The maximum log message level each provider will have its own default value.

Example

// Set the config to enable debug messages to be displayed
// to the console
let dbgConfig = {
lvl: DblLevel.Debug
};

Generated using TypeDoc