Captures events by given name and casts received messages to specified class.
Captures all events as generated by remote debugger