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

来源:互联网 发布:杭州工商局投诉淘宝 编辑:程序博客网 时间:2024/06/07 07:06

在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,一切就会正常。



原创粉丝点击
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 四个月宝宝脾气不好怎么办 5岁说话不清楚该怎么办 小孩快上幼儿园了不怎么说话怎么办 四岁宝宝吐字不清楚怎么办 孕28周胎儿腿短怎么办 b超显示腿短怎么办 2岁多宝宝不愿意说话怎么办 6岁儿童咬字不清怎么办 两岁宝宝爱看电视怎么办 两岁宝宝喜欢看电视怎么办 三岁宝宝说话不清晰怎么办 儿子快四岁了说话不清楚怎么办 儿子快三岁了说话不清楚怎么办 2岁宝宝受刺激了怎么办 一岁的宝宝口臭怎么办 古话说小孩牙齿掉了怎么办 宝宝三岁胆子小怎么办 小宝宝就是不愿意学说话怎么办 2岁宝宝体重偏重怎么办 三岁宝宝体重偏重怎么办 3岁宝宝说话晚怎么办 孩子吃饭总说话吃饭慢怎么办 我的孩子不聪明怎么办 小孩个子长不高怎么办 晚修自己老喜欢讲话怎么办 宝2岁宝脾气大怎么办 宝宝比同龄孩子发育晚怎么办 早教机构业绩不好怎么办 孩子上早教课哭怎么办 两岁宝宝哭闹不止怎么办 7个月宝宝怕生疏怎么办 5个月宝宝怕洗澡怎么办 4个月宝宝认人怎么办 2岁宝宝语言迟缓怎么办 宝宝老是哭闹不睡觉怎么办 7岁儿童说话晚怎么办 一岁多的婴儿说话晚该怎么办 宝宝甲低300多怎么办 两岁半宝宝还不怎么会讲话怎么办 宝宝两岁半了还不讲话怎么办 两岁宝宝怕生人怎么办