Re: [android-developers] Command line device debugging -- set breakpoint in the code?
Thanks for the reply. I can understand your perspective about working from the command line. Tools are just tools, it's how well we use them and how productive we are with them that counts. I'm sorry I can't help much with your question. If you're patient maybe another person will help you with it. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Command line device debugging -- set breakpoint in the code?
On 12/15/2010 12:40 PM, Frank Weiss wrote: Well, our perception of Eclipse is 180 degrees from mine. I'm curious, what did you meant by "beast"? I guess it just seems really complex. I've never used and IDE, so there is a lot to learn. I did the android HelloWorld and Notepad in Eclipse and just decided to go back to the command line. I still push a button to compile install and run the app - it's just that the button is a scriipt. I'm comfortable on the command line, and I don't like to use the mouse. I also couldn't live without vim. I understand that there are plugins for that, but I googled around and gave up. Step debugging is the last thing that I need. Otherwise, I'm super happy with the SDK from the command line. I don't have Ctrl-Shift+O, but I'm new to Java, and new to android, so I don't mind that I'm forced to get familiar with the object heirarchy. I'm sure that the docs are more readily available from Eclipse, but the online android reference rocks. In the OP you asked about setting breakpoints right in the code. In Eclipse debugger (and just about every GUI debugger, including Firebug) you just double click in the left margin of the source code line to set a breakpoint, which is indicated by a small dot in the left margin. By "in the code" I mean that I want to be able to edit my source code with an editor and have that generate the breakpoint. With some other debuggers, there is a function call that can make this happen. When the breakpoint fires, Eclipse highlights that line. From there you can inspect variables, the stack, etc. and step through the code. I've debugged with the command line before, but once I started debugging with Eclipse, Visual Studio, and Firebug, I would think that having to use a command line debugger is painful. I get that it must be more streamlined, and I wanted to try it. I thought that I could just go to Eclipse for debugging and do everything else the same way I've been doing. I created a new android project from existing source, and pointed to my source tree. There were many errors listed, even though my app compiles and runs fine. I couldn't make sense of them. I tried to run the project and I got an error. I just gave up. I guess that made me think of the program as a beast. I will give it a try some other time. I can't make a valid choice until I have reached some level of familiarity with what Eclipse can do. I notice that there are two well represented camps on the net: those that love Eclipse and those that hate it. There's very little in between. I shy from GUI's in general. I always find myself doing repetitive mouse movements to get the same things done over and over. On the command line, anything repetitive is scripted. I guess I tried to further justify my original choice by thinking that I'd learn Java and the SDK in greater depth this way, and I might say that I believe that I was correct in that respect. Thanks, Toby -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Command line device debugging -- set breakpoint in the code?
Well, our perception of Eclipse is 180 degrees from mine. I'm curious, what did you meant by "beast"? In the OP you asked about setting breakpoints right in the code. In Eclipse debugger (and just about every GUI debugger, including Firebug) you just double click in the left margin of the source code line to set a breakpoint, which is indicated by a small dot in the left margin. When the breakpoint fires, Eclipse highlights that line. From there you can inspect variables, the stack, etc. and step through the code. I've debugged with the command line before, but once I started debugging with Eclipse, Visual Studio, and Firebug, I would think that having to use a command line debugger is painful. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Command line device debugging -- set breakpoint in the code?
On 12/15/2010 10:53 AM, Frank Weiss wrote: Are you debugging Android OS or Android SDK code? Just a small app I'm writing using the SDK. In Python, or PHP, I can issue a call in the code that becomes a breakpoint. I'm just hoping that there is a way to do that for android. I heard somewhere that I could list the breakpoints in a config file somewhere, but I can't find that reference anymore. Thanks, Toby -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Command line device debugging -- set breakpoint in the code?
Are you debugging Android OS or Android SDK code? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Command line device debugging -- set breakpoint in the code?
On 12/14/2010 09:48 PM, Frank Weiss wrote: I'm surprised no one has answered. Learn how to us the Eclipse debugger. Fall in love with the Eclipse debugger. I was hoping not to have to fire up that beast. I saw a post somewhere that suggested putting in a while loop that is contingent on some variable, then after entering jdb, set a breakpoint after the loop and unset the variable to let fly. There has to be a better way. Thanks, Tobiah -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Command line device debugging -- set breakpoint in the code?
I'm surprised no one has answered. Learn how to us the Eclipse debugger. Fall in love with the Eclipse debugger. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en