Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rjcorwin/44603092bbf746e460c15aaafd657123 to your computer and use it in GitHub Desktop.
Save rjcorwin/44603092bbf746e460c15aaafd657123 to your computer and use it in GitHub Desktop.
How to put a debugger statement in a Javascript template literal.
var foo = `
Here is a debugger statment in a template...
${(()=>{ debugger })()}
`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment