Added a debug option, which uses a traceable event dispatcher and adds a debug call in the DispatchEventCommand.
Merge branch 'debug'