07-18-2008 11:21 AM
I was expecting that System.out.println() would be output to the Blackberry Simulator Output Console but I'm not getting anything in that window. Is there a trick to getting output there?
Thanks in advance,
Solved! Go to Solution.
07-18-2008 11:55 AM
07-18-2008 12:04 PM - edited 07-18-2008 12:04 PM
You need to attach the simulator in debug mode. To do this simply right click on the project>Debug As>BlackBerry Simulator. This should attach the simulator to the Eclipse JDE plugin and println()s should now show up in Blackberry Simulator Output Console.
To connect a device in debug mode, right click on the project>Debug As>BlackBerry Device. This will attach the device to the Eclipse JDE plugin and as above, println()s should show up in Blackberry Simulator Output Console.
12-03-2008 12:39 AM
Hi there, running the app through the 'Debug As > BlackBerry Simulator' does not seem to work for me. I am not receiving any output in the BlackBerry Simulator Output Console despite including print statements like the following in my code:
System.out.println("This is a print statement");
It doesn't seem to matter which version of the component pack I use (4.5 or 4.6).
The BlackBerry Builder Console on the other hand is verbose. The output from my Builder Console and the code is below. I am able to set breakpoints and examine values in the variables perspective. And I did find that print statements worked in the BlackBerry JDE, but I would prefer to use eclipse.
Does anyone have any ideas? Thanks in advance!
Builder Console Output:
Building HelloWorld at Tue Dec 02 21:21:25 PST 2008.
Executing rapc for the project HelloWorld at Tue Dec 02 21:21:25 PST 2008.
rapc executed for the project HelloWorld
12-04-2008 03:53 PM
The builder output and debug output from the BlackBerry Simulator appear in the same console window. You can switch between them by clicking on the Console window icon.
There is also an issue in the current beta release that prevents the BlackBerry Simulator debug output from appearing if you have changed the Installed Component setting in the BlackBerry Plug-in for Eclipse preferences. The work around to this is to restart Eclipse.
05-06-2010 08:59 PM - edited 05-06-2010 09:01 PM
I have the same problem, and I'm starting to be crazy!
Projet is new, I just display a text on ascreen (like the HelloWorldDemo app).
I'm using Eclipse 3.5, with the Blackberry Java Plug-in for Eclipse v1.1 (so not the beta), the projet has been created with Blackberry JDE 4.5.
I start the simulator "Debug As > Blackberry Simulator", the debugger is attached and then I see lots of things when the simulator starts. The application starts and my screen displays, but I never see my
System.out.println("test for the console output");
I restarted the simulator, eclipse, everything...
Still no trace in the console!
Please help me...