Skip to content

Instantly share code, notes, and snippets.

@broskees
Last active September 5, 2022 04:03
Show Gist options
  • Save broskees/01404e4f83c06d19fbd38737a006a64e to your computer and use it in GitHub Desktop.
Save broskees/01404e4f83c06d19fbd38737a006a64e to your computer and use it in GitHub Desktop.
A short and sweet javascript debugger function that tells you the variable name and the function it was called in
const debuggerFn = variable => console.log({[debuggerFn.caller]: {variable}});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment