Disabled debug commands in release build

Fixed some warnings