×

Discussion Board

Results 1 to 10 of 10

Hybrid View

  1. #1
    Registered User
    Join Date
    Jan 2007
    Posts
    49

    How do you debug with Nokia SDK 2.0?

    Hi there,

    Have been using the Sony Ericsson SDK for 5 years now, and to debug is simply hitting the 'Debug' button in eclipse. Doing that will start the emulator and auto start your application by running startApp()

    How do you debug with Nokia SDK 2.0?

    When I hit the debug button, an emulator pops up (the one that comes default with the offline Nokia SDK 2.0 version) and I get the date and time screen. Correcting the details I get the grid screen. Going into files or games shows an empty folder.

  2. #2
    Registered User
    Join Date
    Jan 2007
    Posts
    49

    Re: How do you debug with Nokia SDK 2.0?

    Oh and I use the eclipse ide that came with the offline Nokia SDK 2.0 version

  3. #3
    Nokia Developer Expert
    Join Date
    Aug 2011
    Posts
    555

    Re: How do you debug with Nokia SDK 2.0?

    Hi jkoorts,

    You debug Java ME applications in the same way as with standard Java applications when using Eclipse. You only need to hit the debug button (this should cause Eclipse to switch to debug view). Then your application should be launched in the Emulator. The first time the emulator launches, it will ask you to set the date and time. After you have set these values once, you should be able to see your MIDlet being launched in the Emulator. You can then set breakpoints in Eclipse and use the Debug view as you would normally do. Note that launching the MIDlet might take a while the first time. You don't need to close the Emulator window once launched. It's faster to leave it open and hit again the compile or debug buttons depending on what you need to do.

    We do know that the debug view might not properly work in some cases, unless you modify the Debug settings from the Eclipse IDE.

    Please select Windows > Preferences > Java > Debug. In the Debug options window, please unselect all settings, increase the Debug timeout to 300000 and set the Launch time out somewhere close to 20000. Let us know, if this doesn't work.

  4. #4
    Registered User
    Join Date
    Jan 2007
    Posts
    49

    Re: How do you debug with Nokia SDK 2.0?

    Hi there,

    Thanks for the reply. After reading your email I opened up my other eclipse ide (with MJT) and added the Nokia device to my IDE. Hit 'Debug' and walla!.

    Thanks

    Ps. The eclipse that I got with the SDK keeps on crashing.

  5. #5
    Nokia Developer Expert
    Join Date
    Aug 2011
    Posts
    555

    Re: How do you debug with Nokia SDK 2.0?

    Ps. The eclipse that I got with the SDK keeps on crashing.
    We are sorry to hear that. If you are interested in returning back to the IDE, you might want to launch the Task Manager and check if you have multiple processes called "javaw" running at the same time. By killing them all, you might be able to launch the IDE. Also note that if you update your Java (JDK) version, you might overcome your issue.

    If none of the above works and you want me to get back to the SDK team, with your feedback, just let me know what your Java version is (type "java -version" in a command prompt window) and how exactly the SDK crashes. Do you see the splash/loading screen? At what point does it crash? Do you see any error messages, if so what do they say?

  6. #6
    Registered User
    Join Date
    Jan 2007
    Posts
    49

    Re: How do you debug with Nokia SDK 2.0?

    java version "1.6.0_30"
    Java(TM) SE Runtime Environment (build 1.6.0_30-b12)
    Java HotSpot(TM) 64-Bit Server VM (build 20.5-b03, mixed mode)

    No crashes on:

    Eclipse Platform

    Version: 3.7.2.v20120207-1839-9gF7UHPDFxGjd-PqDr2jX_4yKaumkoHTz04_q-q
    Build id: M20120208-0800

  7. #7
    andu77
    Guest

    Re: How do you debug with Nokia SDK 2.0?

    Quote Originally Posted by jkoorts View Post
    java version "1.6.0_30"
    Java(TM) SE Runtime Environment (build 1.6.0_30-b12)
    Java HotSpot(TM) 64-Bit Server VM (build 20.5-b03, mixed mode)

    No crashes on:

    Eclipse Platform

    Version: 3.7.2.v20120207-1839-9gF7UHPDFxGjd-PqDr2jX_4yKaumkoHTz04_q-q
    Build id: M20120208-0800
    Using JDK6u27 helps ? It's recomended ver.

  8. #8
    Nokia Developer Expert
    Join Date
    Aug 2011
    Posts
    555

    Re: How do you debug with Nokia SDK 2.0?

    Thanks for sharing your system information. Does the crash happen when you launch the IDE or do you successfully launch the IDE and add your code, but the Emulator crashes when you try to compile and run your MIDlet? Do you see any error messages?

  9. #9
    Registered User
    Join Date
    Jan 2007
    Posts
    49

    Re: How do you debug with Nokia SDK 2.0?

    Crash during startup. Thought I'd give this SDK another go:


    UEIInvocationParameters: About to call FileUtils.createFakeJadAndJar(classname=mobi.bozza.Bozzaclasspath=null)
    Emulator command: C:\Nokia\Devices\Nokia_SDK_2_0_Java\bin\Nokia_SDK_2_0_Java_em.exe -Xdomain:trusted
    Creating New "Nokia SDK 2.0 for Java" Instance ...
    Thread RUNS
    Loading SdkConfig.dll
    Loaded
    Loading sdk.dll
    Loaded
    WARNING: Unrecognized argument 1: -Xdomain:trusted
    Smart card communication error 0x80100017
    The specified reader is not currently available for use

    "Nokia SDK 2.0 for Java" Instance #2000 Ready for Future Connections


    ########Emulator pops up. App does not run
    ########Wait a few seconds
    ########Hit Run again


    UEIInvocationParameters: About to call FileUtils.createFakeJadAndJar(classname=mobi.bozza.Bozzaclasspath=null)
    Emulator command: C:\Nokia\Devices\Nokia_SDK_2_0_Java\bin\Nokia_SDK_2_0_Java_em.exe -Xdomain:trusted
    Connecting to Running "Nokia SDK 2.0 for Java" Instance #2000 ...
    connected to port 54842
    creating pipe
    replacing stdout or stderr handle
    WARNING: Unrecognized argument 1: -Xdomain:trusted


    ########By now the screen of the emulator has darkened.
    ########App does not run.
    ########Hit Run again

    UEIInvocationParameters: About to call FileUtils.createFakeJadAndJar(classname=mobi.bozza.Bozzaclasspath=null)
    Emulator command: C:\Nokia\Devices\Nokia_SDK_2_0_Java\bin\Nokia_SDK_2_0_Java_em.exe -Xdomain:trusted
    Connecting to Running "Nokia SDK 2.0 for Java" Instance #2000 ...
    connected to port 54842
    creating pipe
    replacing stdout or stderr handle
    WARNING: Unrecognized argument 1: -Xdomain:trusted
    "Nokia SDK 2.0 for Java" Connection Terminated


    ########App does not run.
    ########Notice the difference outputs for each attempt. Quite funny.
    ########Hit Run again


    UEIInvocationParameters: About to call FileUtils.createFakeJadAndJar(classname=mobi.bozza.Bozzaclasspath=null)
    Emulator command: C:\Nokia\Devices\Nokia_SDK_2_0_Java\bin\Nokia_SDK_2_0_Java_em.exe -Xdomain:trusted
    Connecting to Running "Nokia SDK 2.0 for Java" Instance #2000 ...
    connected to port 54865
    connected to port 54866
    WARNING: Unrecognized argument 1: -Xdomain:trusted
    "Nokia SDK 2.0 for Java" Connection Terminated


    ########App does not run.
    ########I give up.

  10. #10
    Registered User
    Join Date
    Jan 2007
    Posts
    49

    Re: How do you debug with Nokia SDK 2.0?

    Cant reproduce the crashing, but trust me the crashing of the ide is the least of the worries. I dont care if the IDE crashes even every 2nd startup. What I do care about is that you cant debug.

Similar Threads

  1. How to debug qml app to nokia n97
    By Supernova746 in forum [Archived] Beginning Qt
    Replies: 1
    Last Post: 2011-03-14, 20:57
  2. Emulator Debug works fine, but Phone Debug (ARMV5) gives errors
    By vinay_pdy in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2009-03-30, 18:37
  3. How to debug the application in NOKIA RDA
    By chaishekar in forum Mobile Java General
    Replies: 4
    Last Post: 2009-02-17, 04:43
  4. How to debug nokia in eclipse
    By bakih in forum Mobile Java General
    Replies: 1
    Last Post: 2006-07-23, 13:14
  5. Debug Nokia SyncML client
    By stefano_fornari in forum OMA DM/DS/CP
    Replies: 8
    Last Post: 2006-06-27, 20:18

Posting Permissions

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