Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Newbie - How to debug ?

 
Alessandro Camel
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know that I have to use the debug mechanism inside eclipse, but, right now, it's kind of hard for me!
As I was used in perl, I'd like to print out *somewhere* strings like :"DEBUG - myVariabile = value".
I really don't know where to print these information!
Can I use the Console or,better,the logcat view?
 
Peter Johnson
author
Bartender
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I always write them to the log (using the methods on the android.util.Log class) and use the logcat viewer.
 
Alessandro Camel
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Peter Johnson wrote:I always write them to the log (using the methods on the android.util.Log class) and use the logcat viewer.


Thank you very much! I'm going to have a look into it!
 
Peter Johnson
author
Bartender
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One of the nice features in the Eclipse integration is that in Eclipse I can filter the logs and thus see only my log information. Comes in real handy at times.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!