added debugging support within the state machine

Signed-off-by: Daniel Fagnan <dnfagnan@gmail.com>