Eclipse DeBug调试j2ME程序时异常处理

在eclipse--DeBug调试j2ME程序时,模拟器一闪就消失了,并且有如下错误信息提示:


Connecting to 127.0.0.1 on port 2800
Waiting for debugger on port 50935
Waiting for KVM...
Connection received.
正在通过存储根 C:\Users\yujb\j2mewtk\2.5.2\appdb\temp.DefaultColorPhone10 来运行
Running with locale: Chinese (Simplified)_People's Republic of China.936
Running in the maximum security domain
Connected to KVM
Method............: 102411d4 'java/lang/Math.<clinit> (static)' 
Stack Chunk.......: 3b06ee0
Frame Pointer.....: 3b06ee8
Current IP........: 1034c9c1 = 1034c9b5 + offset 12
Previous Frame....: 3a5070c
Previous IP.......: 10369ef4 (offset 0)
Frame size........: 0 (0 arguments, 0 local variables)
Operand[1]........: 0
Operand[2]........: 80000000


Method............: 10253fa4 'java/lang/Class.runCustomCode (static)' 
Stack Chunk.......: 3a50544
Frame Pointer.....: 3a5070c
Current IP........: 10369ef4 = 10369ef4 + offset 0
Previous Frame....: 3a506ec
Previous IP.......: 10347831 (offset 12)
Frame size........: 0 (0 arguments, 0 local variables)
Operand[1]........: 10001c10
Operand[2]........: 103deb98
Operand[3]........: 5


Method............: 1023c6a8 'java/lang/String.compareTo (virtual)' 
Stack Chunk.......: 3a50544
Frame Pointer.....: 3a506ec
Current IP........: 10347831 = 10347825 + offset 12
Previous Frame....: 3a506a0
Previous IP.......: 10386182 (offset 180)
Frame size........: 13 (2 arguments, 11 local variables)
Argument[0].......: 1016fad8
Argument[1].......: 10171038
Local[2]..........: 13
Local[3]..........: 15
Local[4]..........: 0
Local[5]..........: 0
Local[6]..........: 0
Local[7]..........: 0
Local[8]..........: 0
Local[9]..........: 0
Local[10]..........: 0
Local[11]..........: 0
Local[12]..........: 0
Operand[1]........: 13
Operand[2]........: 15

Execution stack contains 544 items: 
0  
1  
3c4f474  
10253fa4  
3a50544  
0  
1002d880  
103e6230  
3a50834  
3a5054c  
10369ef4  
3a5056c  
10253fa4  
3a50544  

0  
0  
0  
0  
0  
0  
0  
3a5070c  
10369ef4  
3a5072c  
102411d4  
3b06ee0  
0  
0  
80000000  


ALERT: Attempting to resume current thread
Execution completed.
281 bytecodes executed
1 thread switches
1661 classes in the system (including system classes)
21244 dynamic objects allocated (1446096 bytes)
2 garbage collections (98804 bytes collected)
Execution completed.
281 bytecodes executed
1 thread switches
1661 classes in the system (including system classes)
21244 dynamic objects allocated (1446096 bytes)
2 garbage collections (98804 bytes collected)

解决方法是:

菜单栏Window→Preferences→Java→Debug   

去掉suspend execution on uncaught exceptions和Suspend execution on compilation errors前面两个勾,

再把Debugger timeout(ms)设置为20000ms,一切就会正常。



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值