Skip to content

Instantly share code, notes, and snippets.

@alpenzoo
Created October 3, 2024 20:21
Show Gist options
  • Save alpenzoo/32530da765fe14826db835dc26dbf16d to your computer and use it in GitHub Desktop.
Save alpenzoo/32530da765fe14826db835dc26dbf16d to your computer and use it in GitHub Desktop.
JS debugging options: 1. naming your script; 2. Chrome to open your script in the debugger by adding debugger; statement in your script and reloading the page with Dev Tools open. Once this line is hit your code will be opened in the debugger.
<script>
...
debugger;
...
//# sourceURL=name_this_script.js
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment