×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    8

    How to get stack traces for exceptions on device? Or get Device Connection Tool work

    There are some exceptions that happen on the device but not on the emulators, for which I've found no way to get the stack trace, since the MIDP Throwable class doesn't let you print the stack trace to a given stream, unlike the one on J2SE.

    I tried the Device Connection Tool from the Nokia S60 (Java) SDK, but can't get it to connect. I plug in the phone, verify that the phone shows as connected, and in the Device Connection Tool, I click all the shown ports, one by one, and click Connect, and then run my app on the phone, repro the situation that causes the exception, and notice that the console window in the Device Connection Tool is blank.

    What is missing here, and how do I get this tool to work?

    I tried using MIDPLogger, but found that it doesn't always work -- sometimes its output is blank or doesn't include the complete contents of sysout/syserr.

    Thanks.

  2. #2
    Nokia Developer Champion
    Join Date
    Sep 2008
    Location
    Noida, U.P.
    Posts
    1,330

    Thumbs up Re: How to get stack traces for exceptions on device? Or get Device Connection Tool w

    Well thats true that stacktrace is restricted to trace the error on device.
    My suggestion is to make ur own log. Just take a form and append ur move over there like


    code line ;
    log ("line 1");
    code line ;
    log ("line 2");




    void log (string log)
    {
    form.append(log);

    }

    Also use a command to show the form and a command to get back to main page..


    is this makes some sense;
    thanks,
    jitu_goldie..

    KEEP TRYING..

  3. #3
    Registered User
    Join Date
    Feb 2009
    Posts
    15

    Re: How to get stack traces for exceptions on device? Or get Device Connection Tool w

    For on device debugging I use the bluetooth connection on my N95... couldn't get it to work through the normal USB cable (wasn't even listed in the docs only the ecmt tool had an option in it). You also have to install (and start) the i/o redirection application (you need to install this after installing the ecmt tool). Both tools need to run in the background then you can start the "Device Connection" on the PC.

    I only used the S60_3rd_MIDP_SDK_FP1 so maybe this info is of no use to you

Similar Threads

  1. On Device Debugging using USB
    By tinkywinky in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 7
    Last Post: 2010-03-11, 05:17
  2. Infrared socket connection between Symbian device and Windows
    By vespe in forum Symbian Networking & Messaging (Closed)
    Replies: 15
    Last Post: 2003-10-10, 16:50
  3. Automatically selecting a Bluetooth Device for Connection
    By tkedem in forum Bluetooth Technology
    Replies: 1
    Last Post: 2003-03-10, 09:24
  4. Replies: 5
    Last Post: 2003-02-07, 11:25
  5. Replies: 1
    Last Post: 2002-11-27, 05:51

Posting Permissions

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