首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Eclipse开发 >

CommandAction里面断点执行不了,为什么解决办法

2012-01-29 
CommandAction里面断点执行不了,为什么在APP()里面断点可以停下来,为什么断在CommandAction()里执行不到呢

CommandAction里面断点执行不了,为什么
在APP()里面断点可以停下来,为什么断在CommandAction()里执行不到呢?如下:

public   void   commandAction(Command   arg0,   Displayable   arg1)   {

System.out.println( "fafafa ");
if(arg0==ExitCommand)       //       (1)
{      
                                                  //
                                                  //
                                      }

}
就算我断在(1)处,在按按钮时也停不下,且控制台有输出 "fafafa ",


为什么?

[解决办法]
关注
[解决办法]
你的class文件没有被更新。
另外,你的”if(arg0==ExitCommand) “条件写法不对吧

热点排行