选定工程,点击右键-->Properties-->Java Compiler-->Classfile Generation,勾选上Add line number attributes to generated class files(used by the debugger)。网上搜的,使用后解决BUGdebug