Solved

Logging errors

Posted on 2008-06-10
2
204 Views
Last Modified: 2010-08-05
Hi,

I have a midlet, and am just printing debug statements via System.out.println(). That doesn't help when on an actual phone as far as I can tell. Is there a way to direct the output to someplace I can actually see it when my midlet is actually running on the phone?

Thanks
0
Comment
Question by:DJ_AM_Juicebox
2 Comments
 
LVL 7

Accepted Solution

by:
humanonomics earned 500 total points
ID: 21756198
It can be done in two ways.

1st Find some logging mechanism (which is very rare for J2ME) but I found one "http://www.enoughsoftware.com/docs/tutorial.html"

2nd have your own logging mechanism, wherein instead of sysouts, you actually append your logging statements to a file on the mobile itself.

Hope this helps.
Thanks
~Humanonomics.
0
 
LVL 13

Expert Comment

by:MicheleMarcon
ID: 21757330
If you have bluetooth you can send output to the bluetooth serial port.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
factorial example 4 41
how to install java on RHEL image on EC2 4 30
iterator/ListIterator approach 17 28
CSV file parsing thru Java 13 31
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question