aspose file tools*
The moose likes Android and the fly likes Newbie - How to debug ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "Newbie - How to debug ?" Watch "Newbie - How to debug ?" New topic
Author

Newbie - How to debug ?

Alessandro Camel
Ranch Hand

Joined: Jul 03, 2009
Posts: 35
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

Joined: May 14, 2008
Posts: 5830
    
    7

I always write them to the log (using the methods on the android.util.Log class) and use the logcat viewer.


JBoss In Action
Alessandro Camel
Ranch Hand

Joined: Jul 03, 2009
Posts: 35
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

Joined: May 14, 2008
Posts: 5830
    
    7

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Newbie - How to debug ?