Added end-to-end debug mode support
Merge pull request #148 from nhr/debug_mode

Added end-to-end debug mode support