add a debug switch param -D instead of open debugging when compile.