Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
11-09-2008 08:59 PM
Hi, I am using the NetBeans plugin and am able to compile into the .cod file. A simple Hello World works fine.
I have a rather large Java ME project that I'm trying to test on the BlackBerry. While the MIDlet works fine on other emulators and real devices, it's trowing an exception somewhere in the code.
The BlackBerry 8130 emulator show that there is an uncaught null pointer exception and gives me a list of commands in a scroll list. One of them is to "Dump Logged Stack Traces". When I select this command, it says "Logged stacks dumped".
I'm not sure if this is dumped into a file or dumped away from memory. There's nothing in the event log window either.
Is there anyway of seeing this trace?
I'm trying not to use the JDE as I am able to build the project in NetBeans entirely.
Solved! Go to Solution.
11-10-2008 05:28 AM
I think you will find it if you go to the Home/Ribbon Screen, hold the ALT key (Cntrl on your PC Keyboard) and type LGLG. This will display the Eventlog and I suspect you will find you stack trace in there.
You might find it worthwhile to 'connect' to the simulator and debug directly with breakpoints etc. But I have no idea how you do this from NetBeans sorry. If you do a search round, you will probably find someone who has done this.
11-10-2008 06:07 AM
Thank you. This is so helpful. I am able to see the stack trace now. I did not have a clue that the event log is on the simulator screen. I was looking for a 'windows window' instead.
Likewise, if there is a way to trap System.out.println messages somewhere, that'll be good. Like some of the Samsung and Motorola emulators that dump these messages in a command-window.
I've tried 'attaching' the debugger. It does not always work. I had to reset the simulator several times.
In any case, seeing the stack trace is already a big help.
11-10-2008 06:44 AM
11-10-2008 07:52 AM
11-10-2008 08:09 AM
I can get the System.out.println statements when I attach the debugger to the simulator. This means, I have to have the JDE running. I'm just wondering if this can be done without the JDE.
In other environments, I can start their emulator from the command line and all the System.out.println statements will go to the console I started the emulator from.
Is there an equivalent in the BB command-line tools?
Apologies for the newbie questions. I am completely new to the BB toolset.
11-10-2008 08:25 AM