Some debug code style fixes, and https://github.com/yiisoft/yii2/issues/...

...1478#issuecomment-31446267 fix