Attaching a breakpoint to event triggering?

166 views
Skip to first unread message

David

unread,
Jul 9, 2012, 11:49:55 AM7/9/12
to fir...@googlegroups.com
I'm trying to debug some event-heavy code and would like to arrange to break whenever a particular event is triggered so that I can see which particular bit of code is actually handling the event.  I've found eventbug which lets me *see*, but not break on, the events bound to a page, but there are a lot of them.  Is there anything that will let me set a breakpoint on an event?

Tim Higham

unread,
Jul 9, 2012, 1:36:30 PM7/9/12
to fir...@googlegroups.com
I think you can set break on error, then deliberately write an error in the event handler and place a manual breakpoint when Firebug stops here - extremely messy but all I can think of as I have never really used eventbug much,
Tim Higham

 On 9 July 2012 16:49, David <kar...@csail.mit.edu> wrote:
I'm trying to debug some event-heavy code and would like to arrange to break whenever a particular event is triggered so that I can see which particular bit of code is actually handling the event.  I've found eventbug which lets me *see*, but not break on, the events bound to a page, but there are a lot of them.  Is there anything that will let me set a breakpoint on an event?

--
You received this message because you are subscribed to the Google
Groups "Firebug" group.
To post to this group, send email to fir...@googlegroups.com
To unsubscribe from this group, send email to
firebug+u...@googlegroups.com
For more options, visit this group at
https://groups.google.com/forum/#!forum/firebug

Sebastian Zartner

unread,
Jul 10, 2012, 1:30:57 AM7/10/12
to fir...@googlegroups.com
Tim's suggestion helps, but of course isn't the nicest way to achieve this.
The Break On Next option should normally help you out in these cases. Though it's not perfect and there are already several enhancements requests to improve the current situation like issue 1711 and issue 5045.

Sebastian
Reply all
Reply to author
Forward
0 new messages