在APP()里面断点可以停下来,为什么断在CommandAction()里执行不到呢?如下:
public void commandAction(Command arg0, Displayable arg1) {
System.out.println( "fafafa ");
if(arg0==ExitCommand) // (1)
{
//
//
}
}
就算我断在(1)处,在按按钮时也停不下,且控制台有输出 "fafafa ",
为什么?
------解决方案--------------------
关注
------解决方案--------------------
你的class文件没有被更新。
另外,你的”if(arg0==ExitCommand) “条件写法不对吧