Skip to content

Debugger #50

Closed
Closed

Description

@pi0

Context: #37, nuxt/framework#7690

We could expose a utility (more multiple utils?) to enable debugger for a bookable instance.

const hooks = createHooks()

// Start debugging hooks name and timing in console
const debugger = createDebugger(hooks, { /*opts* })

debugger.close() // Stop debugging and remove listeners

Options:

  • inspect: Show hook params to the console output (enabled for browsers by default?)
  • group: Use console.group/groupEnd wrapper around logs happening during a specific hook
  • filter: Filter which hooks to enable debugger for. Can be string prefix or fn.

Activity

  1. self-assigned this
    on Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions