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

    Function createMemoryProvider

    • Create and return a IDbgProvider which will log the messages to the system runtimes console if available.

      Parameters

      Returns IDbgMemoryProvider

      A new IDbgProvider instance

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

      // Add the memory provider to the default $Dbg instance, this will
      // use the default debug level of error. So on Error, Critical and Terminal
      // log message all other messages Trace, Debug, Information and Warning will
      // be not displayed.
      $Dbg.addProvider(createMemoryProvider());

      $dbgError("Error Message"); // "Error Message" as an error on the console