Fix incorrect event name in debugger

I'm sorry but my previous pull-request #25 was incomplete. There is an issue when we had a name of the last specified event in console log, but not the real event name.

This pull-request resolves it.