Hacker News new | ask | show | jobs
by recursivedoubts 1860 days ago
not mentioned in the article, but my favorite console trick is

  monitorEvents(elt)
https://twitter.com/htmx_org/status/1455242575363723265

hugely helpful when debugging event-driven systems like htmx or hyperscript

1 comments

And unmonitorEvents(elt) to turn it off again. Monitoring every event is pretty noisy, so you can choose what to monitor with a second parameter: https://briangrinstead.com/blog/chrome-developer-tools-monit...

It would be nice if this made live expressions or something instead of filling up the console.