Effective debbuging in android?

Put your problem here if it does not fit any of the other categories.

Effective debbuging in android?

Postby chaoz1336 » Thu Jan 15, 2009 3:32 pm

Hi Guys,

as a former Java-EE coder I'm used to use "System.out.printl()" to see what my App does while processing.
(alternativly with apache-logging)

the only prob is:
whatever I do, android won't display my "System.out.printl()" in any case. :(
Otherwise I used "debug as" (without breakpoints, coz I hate 2 develop that way)
but even this hasnt the effect I wanted.

So... does anyone have an idea?
chaoz1336
Experienced Developer
Experienced Developer
 
Posts: 90
Joined: Wed Dec 10, 2008 5:19 pm

Top

Postby ErnestoGuevara » Thu Jan 15, 2009 4:00 pm

Log.d("myTag", "myMessage");

Che
ErnestoGuevara
Experienced Developer
Experienced Developer
 
Posts: 75
Joined: Thu Jan 08, 2009 2:02 am

Postby chaoz1336 » Fri Jan 16, 2009 9:29 am

ErnestoGuevara wrote:Log.d("myTag", "myMessage");

Che


Thx a lot...
Now I use Log.v("mytag", "myMsg") with a matching filter to see them in LogCat. =)

(Did I already say thx? )
chaoz1336
Experienced Developer
Experienced Developer
 
Posts: 90
Joined: Wed Dec 10, 2008 5:19 pm

Postby coding_android » Fri Jan 16, 2009 10:51 am

I'd like to ask one further question. Is there an easy way for enabling/disabling logging using Log.d or Log.e ? In addition it would be interesting to know how to leave the log messages out of the compiled app? (if there is an automatic mechanism available)
If you got job opportunities for me. Just drop me a personal message. - Android developement - integrating social media into Android
User avatar
coding_android
Moderator
Moderator
 
Posts: 76
Joined: Mon May 05, 2008 10:22 am
Location: Germany

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot], Google Feedfetcher and 20 guests