Move YII_DEBUG definition
Update to use the debug command and helper