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.
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
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.
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.
Re: How do you debug with Nokia SDK 2.0?
[QUOTE]Ps. The eclipse that I got with the SDK keeps on crashing. [/QUOTE]
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?
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
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?
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.
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.
Re: How do you debug with Nokia SDK 2.0?
[QUOTE=jkoorts;902020]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[/QUOTE]
Using JDK6u27 helps ? It's recomended ver.