Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: