Each time I debug JS events I find myself fumbling together event listeners of which I forgot the syntax waaay too often.

It just takes too long.

Recently, I noticed that there is a handy API built into Chrome Developer Tools that makes debugging and logging JS events to the console a brease: The monitorEvents API…

Read how to log all JS events to the console with this new, built-in API.

@wildflower
link
11Y

There’s also a useful tab in the Chromium Developer Tools that lets you see the event listeners ofany given element, without any logging.

The JavaScript community in Lemmy
!javascript

    A community about JavaScript, the ECMAScript standard, and programs that make use of JS such as Node.js.

    • 0 users online
    • 1 user / day
    • 1 user / week
    • 1 user / month
    • 3 users / 6 months
    • 287 subscribers
    • 37 Posts
    • 30 Comments
    • Modlog