simple error helper utility for client-side JavaScript
MIT License
A standalone JavaScript file (error-help.js) that you can add to your HTML to improve the debugging experience when developing HTML/JS projects, without having to open your DevTools console.
This is particularly targeted towards new JavaScript coders and making it a bit easier to get started with the language.
Features:
Gotchas:
Include like so in your project, in the HEAD before all other script tags:
...
<head>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/error-help.js"></script>
</head>
...
You can download error-help.js, add it to your folder, and locally reference it like so:
...
<head>
<script src="./error-help.js"></script>
</head>
...
If you pass dedupe-logs
attribute to the script tag, it will deduplicate console logs that repeat 10 or more times within 1.5 second intervals. This is helpful when working on CodeSandbox in an animated sketch (e.g. with p5.js), to avoid 60FPS console logs slowing down the browser experience.
Example:
...
<head>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/error-help.js"
dedupe-logs></script>
</head>
...
MIT, see LICENSE.md for details.