Hacker News new | past | comments | ask | show | jobs | submit login

> If your listener depends on knowing the state of the triggering code, it is a sign your events are too granular.

That isn't practical debugging. If I'm debugging an event that was fired and I don't know why, or the payload doesn't match my expectations, it would be very useful to inspect the state of the triggering function and see where things went wrong.

Applications are open for YC Summer 2020

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