Olá pessoal. É o seguinte. Eu estou com problemas para usar a função debug do Eclipse 3.5.
Eu estou criando um MIDlet ao executar através do comando Run tudo funciona normal. Porém ao escolher um breakpoint e pedir para debugar aparece a imagem do Device(Emulador ou Celular virtual) do wireless tool kit 2.5 e depois some. no console do Eclipse aparece o seguinte:
Connecting to 127.0.0.1 on port 2800
Waiting for debugger on port 49418
Waiting for KVM…
Connection received.
Running with storage root C:\Users\Toni\j2mewtk\2.5.2\appdb\DefaultColorPhone
Running with locale: Portuguese_Brazil.1252
Running in the identified_third_party security domain
Connected to KVM
Method…: 10229180 'com/sun/cldc/i18n/j2me/UTF_8_Reader.getByteOfCurrentChar (virtual)'
Stack Chunk…: 34a8958
Frame Pointer…: 34a8a18
Current IP…: 1032d7be = 1032d78c + offset 50
Previous Frame…: 34a89f8
Previous IP…: 1032d65d (offset 25)
Frame size…: 2 (2 arguments, 0 local variables)
Argument[0]…: 3493240
Argument[1]…: 0
Operand[1]…: 3493224
Operand[2]…: 0
Operand[3]…: 2e
Method…: 10229160 'com/sun/cldc/i18n/j2me/UTF_8_Reader.read (virtual)'
Stack Chunk…: 34a8958
Frame Pointer…: 34a89f8
Current IP…: 1032d65d = 1032d644 + offset 25
Previous Frame…: 34a89b8
Previous IP…: 10377be4 (offset 11)
Frame size…: 10 (4 arguments, 6 local variables)
Argument[0]…: 3493240
Argument[1]…: 348e504
Argument[2]…: 0
Argument[3]…: 1
Local[4]…: 0
Local[5]…: 0
Local[6]…: 0
Local[7]…: 0
Local[8]…: 0
Local[9]…: 0
Method…: 1025e354 'java/io/Reader.read (virtual)'
Stack Chunk…: 34a8958
Frame Pointer…: 34a89b8
Current IP…: 10377be4 = 10377bd9 + offset 11
Previous Frame…: 34a8998
Previous IP…: 10384e8c (offset 11)
Frame size…: 2 (1 arguments, 1 local variables)
Argument[0]…: 3493240
Local[1]…: 348e504
Method…: 10266de4 'java/io/InputStreamReader.read (virtual)'
Stack Chunk…: 34a8958
Frame Pointer…: 34a8998
Current IP…: 10384e8c = 10384e81 + offset 11
Previous Frame…: 34a897c
Previous IP…: 10345795 (offset 193)
Frame size…: 1 (1 arguments, 0 local variables)
Argument[0]…: 3493550
Method…: 1023b34c 'com/sun/midp/midletsuite/ManifestProperties.readLine (virtual)'
Stack Chunk…: 34a8958
Frame Pointer…: 34a897c
Current IP…: 10345795 = 103456d4 + offset 193
Previous Frame…: 33a06ec
Previous IP…: 103cdfcf (offset 41)
Frame size…: 7 (2 arguments, 5 local variables)
Argument[0]…: 3493688
Argument[1]…: 3493550
Local[2]…: 72
Local[3]…: 13b
Local[4]…: c5
Local[5]…: 72
Local[6]…: 0
Method…: 102954e8 'com/sun/midp/midletsuite/JadProperties.partialLoad (virtual)'
Stack Chunk…: 33a0544
Frame Pointer…: 33a06ec
Current IP…: 103cdfcf = 103cdfa6 + offset 41
Previous Frame…: 33a06a4
Previous IP…: 103456d3 (offset 13)
Frame size…: 12 (4 arguments, 8 local variables)
Argument[0]…: 3493688
Argument[1]…: 349433c
Argument[2]…: 0
Argument[3]…: 7fffffff
Local[4]…: 3493550
Local[5]…: 348f478
Local[6]…: 5
Local[7]…: 348f5ac
Local[8]…: 6
Local[9]…: 348f560
Local[10]…: 0
Local[11]…: 6
Method…: 1023b32c 'com/sun/midp/midletsuite/ManifestProperties.partialLoad (virtual)'
Stack Chunk…: 33a0544
Frame Pointer…: 33a06a4
Current IP…: 103456d3 = 103456c6 + offset 13
Previous Frame…: 33a067c
Previous IP…: 103cdfa5 (offset 8)
Frame size…: 4 (4 arguments, 0 local variables)
Argument[0]…: 3493688
Argument[1]…: 349433c
Argument[2]…: 0
Argument[3]…: 7fffffff
Method…: 102954c8 'com/sun/midp/midletsuite/JadProperties.load (virtual)'
Stack Chunk…: 33a0544
Frame Pointer…: 33a067c
Current IP…: 103cdfa5 = 103cdf9d + offset 8
Previous Frame…: 33a0658
Previous IP…: 103ce0b1 (offset 6)
Frame size…: 3 (3 arguments, 0 local variables)
Argument[0]…: 3493688
Argument[1]…: 349433c
Argument[2]…: 0
Method…: 10295508 'com/sun/midp/midletsuite/JadProperties.load (virtual)'
Stack Chunk…: 33a0544
Frame Pointer…: 33a0658
Current IP…: 103ce0b1 = 103ce0ab + offset 6
Previous Frame…: 33a0638
Previous IP…: 1033816d (offset 54)
Frame size…: 2 (2 arguments, 0 local variables)
Argument[0]…: 3493688
Argument[1]…: 349433c
Method…: 10231154 'com/sun/midp/security/Permissions.readPermissionsTable (static)'
Stack Chunk…: 33a0544
Frame Pointer…: 33a0638
Current IP…: 1033816d = 10338137 + offset 54
Previous Frame…: 33a05e8
Previous IP…: 103384a1 (offset 10)
Frame size…: 14 (1 arguments, 13 local variables)
Argument[0]…: 0
Local[1]…: 349588c
Local[2]…: 349433c
Local[3]…: 3493688
Local[4]…: 3493568
Local[5]…: 0
Local[6]…: 0
Local[7]…: 0
Local[8]…: 0
Local[9]…: 0
Local[10]…: 0
Local[11]…: 0
Local[12]…: 0
Local[13]…: 0
Method…: 10231294 'com/sun/midp/security/Permissions.initialized (static)'
Stack Chunk…: 33a0544
Frame Pointer…: 33a05e8
Current IP…: 103384a1 = 10338497 + offset 10
Previous Frame…: 33a05cc
Previous IP…: 103382f5 (offset 3)
Frame size…: 1 (0 arguments, 1 local variables)
Local[0]…: 0
Method…: 10231174 'com/sun/midp/security/Permissions.isValidDomainName (static)'
Stack Chunk…: 33a0544
Frame Pointer…: 33a05cc
Current IP…: 103382f5 = 103382f2 + offset 3
Previous Frame…: 33a05a8
Previous IP…: 103618ff (offset 11)
Frame size…: 3 (2 arguments, 1 local variables)
Argument[0]…: 34a6670
Argument[1]…: 34959dc
Local[2]…: 0
Method…: 1024d748 'com/sun/midp/dev/DevMIDletSuiteImpl.create (static)'
Stack Chunk…: 33a0544
Frame Pointer…: 33a05a8
Current IP…: 103618ff = 103618f4 + offset 11
Previous Frame…: 33a057c
Previous IP…: 103877b9 (offset 20)
Frame size…: 5 (5 arguments, 0 local variables)
Argument[0]…: 34a6670
Argument[1]…: 34958b0
Argument[2]…: 3495a30
Argument[3]…: 1017c798
Argument[4]…: 34959dc
Method…: 10268d70 'com/sun/midp/main/Main.runLocalClass (static)'
Stack Chunk…: 33a0544
Frame Pointer…: 33a057c
Current IP…: 103877b9 = 103877a5 + offset 20
Previous Frame…: 33a0558
Previous IP…: 10387208 (offset 80)
Frame size…: 3 (1 arguments, 2 local variables)
Argument[0]…: 34a6e7c
Local[1]…: 0
Local[2]…: 0
Method…: 10268cd0 'com/sun/midp/main/Main.main (static)'
Stack Chunk…: 33a0544
Frame Pointer…: 33a0558
Current IP…: 10387208 = 103871b8 + offset 80
Previous Frame…: 0
Previous IP…: 1
Frame size…: 3 (1 arguments, 2 local variables)
Argument[0]…: 33a0834
Local[1]…: 34a6e7c
Local[2]…: 0
VM status:
Instruction pointer.: 1032d7be (offset within invoking method: 50)
Next instruction…: 0x4f
Frame pointer…: 34a8a18
Local pointer…: 34a8a10
Stack size…: 256; sp: 34a8a38; ranges: 33a054c-33a074c;34a8960-34a8b60;
Contents of the current stack frame:
34a8a10: 3493240 (lp)
34a8a14: 0
34a8a18: 34a89f8 (fp)
34a8a1c: 1032d65d
34a8a20: 34a8a0c
34a8a24: 10229180
34a8a28: 34a8958
34a8a2c: 0 (end of frame)
34a8a30: 3493224
34a8a34: 0
34a8a38: 2e (sp)
Execution stack contains 732 items:
33a0834
34a6e7c
0
0
1
33a0548
10268cd0
33a0544
0
34a6e7c
0
0
33a0558
10387208
33a056c
10268d70
33a0544
0
34a6670
34958b0
3495a30
1017c798
34959dc
33a057c
103877b9
33a0590
1024d748
33a0544
0
34a6670
34959dc
0
33a05a8
103618ff
33a05bc
10231174
33a0544
0
0
33a05cc
103382f5
33a05e0
10231294
33a0544
0
0
349588c
349433c
3493688
3493568
0
0
0
0
0
0
0
0
0
33a05e8
103384a1
33a05fc
10231154
33a0544
0
3493688
349433c
33a0638
1033816d
33a064c
10295508
33a0544
3493688
3493688
349433c
0
33a0658
103ce0b1
33a066c
102954c8
33a0544
3493688
3493688
349433c
0
7fffffff
33a067c
103cdfa5
33a0690
1023b32c
33a0544
0
3493688
349433c
0
7fffffff
3493550
348f478
5
348f5ac
6
348f560
0
6
33a06a4
103456d3
33a06b8
102954e8
33a0544
0
3493688
3493550
103cdfe1
33a0700
1023c5c8
33a0544
0
0
1023c8e8
33a0544
0
348f478
0
57
0
0
0
0
3493688
3493550
72
13b
c5
72
0
33a06ec
103cdfcf
33a0700
1023b34c
34a8958
0
3493550
34a897c
10345795
34a8990
10266de4
34a8958
0
3493240
348e504
34a8998
10384e8c
34a89ac
1025e354
34a8958
0
3493240
348e504
0
1
0
0
0
0
0
0
34a89b8
10377be4
34a89cc
10229160
34a8958
0
3493240
0
34a89f8
1032d65d
34a8a0c
10229180
34a8958
0
3493224
0
2e
Execution completed.
232008 bytecodes executed
18 thread switches
1665 classes in the system (including system classes)
19826 dynamic objects allocated (1309072 bytes)
2 garbage collections (189148 bytes collected)
[color=red]ALERT: Attempting to resume current thread[/color]
Execution completed.
232008 bytecodes executed
18 thread switches
1665 classes in the system (including system classes)
19826 dynamic objects allocated (1309072 bytes)
2 garbage collections (189148 bytes collected)