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