Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [dsdp-mtj-dev] Debugging with the MTJ

And we did it for WSDD projects also in the past.
-----------------------------
Kevin Horowitz (khorowit@xxxxxxxxxx)
IBM Software Group - WPLC
8051 Congress Ave.
Boca Raton, Fl 33487
+1-561-862-2113 (t/l 975)

Inactive hide details for Craig Setera <craigjunk@xxxxxxxxxx>Craig Setera <craigjunk@xxxxxxxxxx>


          Craig Setera <craigjunk@xxxxxxxxxx>
          Sent by: dsdp-mtj-dev-bounces@xxxxxxxxxxx

          10/24/2006 07:45 AM

          Please respond to
          Mobile Tools for The Java Platform mailing list <dsdp-mtj-dev@xxxxxxxxxxx>

To

Mobile Tools for The Java Platform mailing list <dsdp-mtj-dev@xxxxxxxxxxx>

cc


Subject

Re: [dsdp-mtj-dev] Debugging with the MTJ

This has long been a requirement in EclipseME.  See
http://eclipseme.org/docs/configuring.html#step4.

Petri.J.Virtanen@xxxxxxxxx wrote:
>
> Hi all,
>
> I played a bit with the latest MTJ and it seems to work pretty well.
> One thing that I noticed was related to debugging. The SDK that I used
> was Sun WTK 2.3 and DefaulColorPhone as a runtime.
>
> By default debugging settings in eclipse (Window -> Preferences ->
> Java-> Debug) are such that
>
> Susbend Executions options are marked
>
> And
>
> Debugger timeout is 3000
>
> With those settings debugger session didn't open. Emulator just dies
> before debugging session starts (below you can find the message in
> console). Heve you noticed the same?
>
>
> This is very easy to fix, only thing that I was needed to do was to
> unmark Susbend Options and then increase Debugger Timeout to be 30000.
>
> We have noticed same thing with Nokia Carbide.j product and users are
> instructed to change the settings. I propose that we will add similar
> help to the MTJ guide. Agree?
>
>
> Br, Petri
>
>
>
> Connecting to 127.0.0.1 on port 2800
> Waiting for debugger on port 3194
> Waiting for KVM...
> Running with storage root DefaultColorPhone
> Running with locale: English_United States.1252
> Connected to KVM
> Connection received.
> Method............: 101aa270 'java/io/Reader.read (virtual)'
> Stack Chunk.......: 10cebc4
> Frame Pointer.....: 10cec6c
> Current IP........: 10253966 = 10253963 + offset 3
> Previous Frame....: 10cec4c
> Previous IP.......: 102114cd (offset 11)
> Frame size........: 2 (1 arguments, 1 local variables)
> Argument[0].......: 10c5684
> Local[1]..........: 0
> Operand[1]........: 10bb330
>
> Method............: 1017fd1c 'java/io/InputStreamReader.read (virtual)'
> Stack Chunk.......: 10cebc4
> Frame Pointer.....: 10cec4c
> Current IP........: 102114cd = 102114c2 + offset 11
> Previous Frame....: 10cec30
> Previous IP.......: 10217455 (offset 193)
> Frame size........: 1 (1 arguments, 0 local variables)
> Argument[0].......: 10c5900
>
> Method............: 101843ec
> 'com/sun/midp/midletsuite/ManifestProperties.readLine (virtual)'
> Stack Chunk.......: 10cebc4
> Frame Pointer.....: 10cec30
> Current IP........: 10217455 = 10217394 + offset 193
> Previous Frame....: 10cebfc
> Previous IP.......: 1022f3c3 (offset 63)
> Frame size........: 7 (2 arguments, 5 local variables)
> Argument[0].......: 10c5a28
> Argument[1].......: 10c5900
> Local[2]..........: 6e
> Local[3]..........: 1d1
> Local[4]..........: 2f
> Local[5]..........: 6e
> Local[6]..........: 0
>
> Method............: 101935e8
> 'com/sun/midp/midletsuite/JadProperties.partialLoad (virtual)'
> Stack Chunk.......: 10cebc4
> Frame Pointer.....: 10cebfc
> Current IP........: 1022f3c3 = 1022f384 + offset 63
> Previous Frame....: 1060758
> Previous IP.......: 10217393 (offset 13)
> Frame size........: 12 (4 arguments, 8 local variables)
> Argument[0].......: 10c5a28
> Argument[1].......: 10c63e0
> Argument[2].......: 0
> Argument[3].......: 7fffffff
> Local[4]..........: 10c5900
> Local[5]..........: 10bb714
> Local[6]..........: 5
> Local[7]..........: 10bb898
> Local[8]..........: 6
> Local[9]..........: 10bb84c
> Local[10]..........: 0
> Local[11]..........: c
>
> Method............: 101843cc
> 'com/sun/midp/midletsuite/ManifestProperties.partialLoad (virtual)'
> Stack Chunk.......: 106059c
> Frame Pointer.....: 1060758
> Current IP........: 10217393 = 10217386 + offset 13
> Previous Frame....: 1060730
> Previous IP.......: 1022f383 (offset 8)
> Frame size........: 4 (4 arguments, 0 local variables)
> Argument[0].......: 10c5a28
> Argument[1].......: 10c63e0
> Argument[2].......: 0
> Argument[3].......: 7fffffff
>
> Method............: 101935c8
> 'com/sun/midp/midletsuite/JadProperties.load (virtual)'
> Stack Chunk.......: 106059c
> Frame Pointer.....: 1060730
> Current IP........: 1022f383 = 1022f37b + offset 8
> Previous Frame....: 106070c
> Previous IP.......: 1022f4a2 (offset 6)
> Frame size........: 3 (3 arguments, 0 local variables)
> Argument[0].......: 10c5a28
> Argument[1].......: 10c63e0
> Argument[2].......: 0
>
> Method............: 10193608
> 'com/sun/midp/midletsuite/JadProperties.load (virtual)'
> Stack Chunk.......: 106059c
> Frame Pointer.....: 106070c
> Current IP........: 1022f4a2 = 1022f49c + offset 6
> Previous Frame....: 10606ec
> Previous IP.......: 1024e2ee (offset 62)
> Frame size........: 2 (2 arguments, 0 local variables)
> Argument[0].......: 10c5a28
> Argument[1].......: 10c63e0
>
> Method............: 101a6250
> 'com/sun/midp/security/Permissions.readPermissionsTable (static)'
> Stack Chunk.......: 106059c
> Frame Pointer.....: 10606ec
> Current IP........: 1024e2ee = 1024e2b0 + offset 62
> Previous Frame....: 1060690
> Previous IP.......: 1024e48d (offset 21)
> Frame size........: 17 (1 arguments, 16 local variables)
> Argument[0].......: 10cd100
> Local[1]..........: 10c6828
> Local[2]..........: 10c63e0
> Local[3]..........: 10c5a28
> Local[4]..........: 10c5918
> 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
> Local[14]..........: 0
> Local[15]..........: 0
> Local[16]..........: 0
>
> Method............: 101a6270
> 'com/sun/midp/security/Permissions.isValidDomainName (static)'
> Stack Chunk.......: 106059c
> Frame Pointer.....: 1060690
> Current IP........: 1024e48d = 1024e478 + offset 21
> Previous Frame....: 106066c
> Previous IP.......: 10223c1f (offset 15)
> Frame size........: 3 (2 arguments, 1 local variables)
> Argument[0].......: 10cd100
> Argument[1].......: 10116b00
> Local[2]..........: 0
>
> Method............: 1018b12c
> 'com/sun/midp/dev/DevMIDletSuiteImpl.create (static)'
> Stack Chunk.......: 106059c
> Frame Pointer.....: 106066c
> Current IP........: 10223c1f = 10223c10 + offset 15
> Previous Frame....: 1060600
> Previous IP.......: 10223c0f (offset 62)
> Frame size........: 21 (10 arguments, 11 local variables)
> Argument[0].......: 10cd100
> Argument[1].......: 10c684c
> Argument[2].......: 10c68f4
> Argument[3].......: 10123f70
> Argument[4].......: 0
> Argument[5].......: 0
> Argument[6].......: 10116b00
> Argument[7].......: 0
> Argument[8].......: 0
> Argument[9].......: 0
> Local[10]..........: 0
> Local[11]..........: 0
> Local[12]..........: 0
> Local[13]..........: 0
> Local[14]..........: 0
> Local[15]..........: 0
> Local[16]..........: 0
> Local[17]..........: 0
> Local[18]..........: 0
> Local[19]..........: 0
> Local[20]..........: 0
>
> Method............: 1018b10c
> 'com/sun/midp/dev/DevMIDletSuiteImpl.create (static)'
> Stack Chunk.......: 106059c
> Frame Pointer.....: 1060600
> Current IP........: 10223c0f = 10223bd1 + offset 62
> Previous Frame....: 10605d4
> Previous IP.......: 1020e87a (offset 20)
> Frame size........: 5 (5 arguments, 0 local variables)
> Argument[0].......: 10cd100
> Argument[1].......: 10c684c
> Argument[2].......: 10c68f4
> Argument[3].......: 10123f70
> Argument[4].......: 0
>
> Method............: 1017e4e8 'com/sun/midp/main/Main.runLocalClass
> (static)'
> Stack Chunk.......: 106059c
> Frame Pointer.....: 10605d4
> Current IP........: 1020e87a = 1020e866 + offset 20
> Previous Frame....: 10605b0
> Previous IP.......: 1020e2d0 (offset 116)
> Frame size........: 3 (1 arguments, 2 local variables)
> Argument[0].......: 10cd64c
> Local[1]..........: 0
> Local[2]..........: 0
>
> Method............: 1017e448 'com/sun/midp/main/Main.main (static)'
> Stack Chunk.......: 106059c
> Frame Pointer.....: 10605b0
> Current IP........: 1020e2d0 = 1020e25c + offset 116
> Previous Frame....: 0
> Previous IP.......: 1
> Frame size........: 3 (1 arguments, 2 local variables)
> Argument[0].......: 1060888
> Local[1]..........: 10cd64c
> Local[2]..........: 10c6970
>
> VM status:
> Instruction pointer.: 10253966 (offset within invoking method: 3)
> Next instruction....: 0x4c
> Frame pointer.......: 10cec6c
> Local pointer.......: 10cec64
> Stack size..........: 256; sp: 10cec84; ranges:
> 10605a4-10607a4;10cebcc-10cedcc;
> Contents of the current stack frame:
>     10cec64: 10c5684 (lp)
>     10cec68: 0
>     10cec6c: 10cec4c (fp)
>     10cec70: 102114cd
>     10cec74: 10cec60
>     10cec78: 101aa270
>     10cec7c: 10cebc4
>     10cec80: 0 (end of frame)
>     10cec84: 10bb330 (sp)
> Execution stack contains 700 items:
> 1060888
> 10cd64c
> 10c6970
> 0
> 1
> 10605a0
> 1017e448
> 106059c
> 0
> 10cd64c
> 0
> 0
> 10605b0
> 1020e2d0
> 10605c4
> 1017e4e8
> 106059c
> 0
> 10cd100
> 10c684c
> 10c68f4
> 10123f70
> 0
> 10605d4
> 1020e87a
> 10605e8
> 1018b10c
> 106059c
> 0
> 10cd100
> 10c684c
> 10c68f4
> 10123f70
> 0
> 0
> 10116b00
> 0
> 0
> 0
> 0
> 0
> 0
> 0
> 0
> 0
> 0
> 0
> 0
> 0
> 0
> 1060600
> 10223c0f
> 1060614
> 1018b12c
> 106059c
> 0
> 10cd100
> 10116b00
> 0
> 106066c
> 10223c1f
> 1060680
> 101a6270
> 106059c
> 0
> 10cd100
> 10c6828
> 10c63e0
> 10c5a28
> 10c5918
> 0
> 0
> 0
> 0
> 0
> 0
> 0
> 0
> 0
> 0
> 0
> 0
> 1060690
> 1024e48d
> 10606a4
> 101a6250
> 106059c
> 0
> 10c5a28
> 10c63e0
> 10606ec
> 1024e2ee
> 1060700
> 10193608
> 106059c
> 10c5a28
> 10c5a28
> 10c63e0
> 0
> 106070c
> 1022f4a2
> 1060720
> 101935c8
> 106059c
> 10c5a28
> 10c5a28
> 10c63e0
> 0
> 7fffffff
> 1060730
> 1022f383
> 1060744
> 101843cc
> 106059c
> 0
> 10c5a28
> 10c63e0
> 0
> 7fffffff
> 10c59c0
> a
> 1019ea94
> 106059c
> 0
> 0
> 0
> 0
> 0
> 10c5a28
> 10c63e0
> 0
> 7fffffff
> 10c5900
> 10bb714
> 5
> 10bb898
> 6
> 10bb84c
> 0
> c
> 1060758
> 10217393
> 106076c
> ALERT: Attempting to resume current thread
> 101935e8
> 10cebc4
> 0
> 10c5a28
> 10c5900
> 6e
> 1d1
> 2f
> 6e
> 0
> 10cebfc
> 1022f3c3
> 10cec10
> 101843ec
> 10cebc4
> 0
> 10c5900
> 10cec30
> 10217455
> 10cec44
> 1017fd1c
> 10cebc4
> 0
> 10c5684
> 0
> 10cec4c
> 102114cd
> 10cec60
> 101aa270
> 10cebc4
> 0
> 10bb330
>
> Execution completed.
> 350702 bytecodes executed
> 3 thread switches
> 890 classes in the system (including system classes)
> 11510 dynamic objects allocated (672924 bytes)
> 3 garbage collections (547260 bytes collected)
> Execution completed.
> 350702 bytecodes executed
> 3 thread switches
> 890 classes in the system (including system classes)
> 11510 dynamic objects allocated (672924 bytes)
> 3 garbage collections (547260 bytes collected)
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> dsdp-mtj-dev mailing list
> dsdp-mtj-dev@xxxxxxxxxxx
>
https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev
>  
_______________________________________________
dsdp-mtj-dev mailing list
dsdp-mtj-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev

GIF image

GIF image

GIF image


Back to the top