×

Discussion Board

Results 1 to 6 of 6

Thread: debug on device

  1. #1
    Registered User
    Join Date
    Jul 2005
    Posts
    6

    debug on device

    I have a midlet that runs without problems in the emulator, but not one the device, when I try to open it it blanks a screen and closes

    I tried to catch all exceptions and create an alert, but still nothing.

    I have an ngage, and I am developing for s60, anyway to print a sout or something like that to debug?

    any ideas are welcome

    thanks in advance
    marcel

  2. #2
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,430
    Hi,

    One way is; if you are using canvas; declare a variable and change its value after certain blocks of code and the draw it on the canvas using drawString() ; IMHO by this way you could find out where the problem is comming.

    regards
    Gopal

  3. #3
    Regular Contributor
    Join Date
    Mar 2005
    Posts
    249
    Just to add:

    Where exactly does it crash?

    If it crashes at the very start of the midlet (before anything else gets run), try checking if you have the correct CLDC and MIDP versions in the jar/jad file. Also check the memory. If it's a particularly large app, some phones might not be able to handle it.

    Or you can just append any printStackTrace(0)'s as StringItems to a form and display it.

    Cheers.

  4. #4
    Registered User
    Join Date
    Aug 2004
    Posts
    1
    i got exactly the same error and i've been searching all day - error source was: i used "float" !

  5. #5
    Registered User
    Join Date
    Feb 2004
    Posts
    21

    PrintStackTrace

    Quote Originally Posted by lmtang
    Just to add:


    Or you can just append any printStackTrace(0)'s as StringItems to a form and display it.

    Cheers.

    ?????
    'printStackTrace' sends it's output to the standard error stream. There is no way to capture that on an actual Nokia device.

  6. #6
    Regular Contributor
    Join Date
    Mar 2005
    Posts
    249

    Re: debug on device

    Ah yes. My mistake. Oversight.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •