16
30%
BSD-2-Clause
neglectedBuckleScript interface to the node 'debug' library

bs-node-debug

A temporary interface to debug, to be used until the rebug Node backend is ready.

Example

  • RE
  • ML
let debug = Debug.make("my-app", "MyModule");

let debugExn = Debug.make("my-app", "MyModule:exn");

Js.Promise.catch((exn) => {
  debug("Unhandled error:");
  debugExn(exn);
  resolve(None)
})
let debug = Debug.make "my-app" "MyModule"
let debugExn = Debug.make "my-app" "MyModule:exn"
let _ =
  Js.Promise.catch
    (fun exn  -> debug "Unhandled error:"; debugExn exn; resolve None)