Add debug_config for status of assert
Fix some warning