Initial import of debug related files.
Merge pull request #1235 from ktf/backport-debug

Initial import of debug related files.
Merge remote branch 'origin/IB/CMSSW_7_3_X/stable' into IB/CMSSW_7_0_X/stable