When debugging, if you want to just see if there's an event, I recommend using Visual Event or the Elements" section of Chrome's Developer Tools: select an element and look for "Event Listeners on the bottom right.
In your code, if you are using jQuery before version 1.8, you can use:
$(selector).data("events")
to get the events. As of version 1.8, this is discontinued (see this bug ticket). You can use:
$._data(element, "events")
but this is not recommended since it is an internal jQuery structure, and could change in future releases.
This question has some answers which may be useful, but none of them are particularly elegant in the same way that $(selector).data("events")
was.