Hi

On Fri, Oct 28, 2011 at 9:10 AM, nester <[email protected]> wrote:
> So I'm making progress on my first real android app (not hello world).
> So far everything is going pretty smooth... except for debugging. I
> just can't figure it out for the life of me!
>

Good.  Keep at it.

> I've been able to insert breakpoints and inspect, but when stepping
> through code... it just seems to break.

Set your break points early.  You could be having a crash(Exception)
before you hit your breakpoint.

>
> Other times when I've made an error, I'll get a message on crash like
> "File not found". Messages like this are completely useless... because
> I can't tells WHICH FILE isn't found. So far I can't tell where the
> hell it's breaking when it crashes.
>

Its reached an unhandled exception.  The debugger backtrace might not
show it, but look in logcat output and the traceback to where you're
code did it could be found.

> I've used trace-cat a bit; but that seems better at high level system
> processes, not granular line-by-line step through processes.
>
> Trial & Error have gotten the job done so far... but as a native .Net
> programmer, I know debug tools could be a LOT more useful.
>
> I'm new to Eclipse; so I'm pretty sure this is just a learning curve.
> Can anybody point me to a good debugging tutorial, or video? Do you
> have any good tips on what I could be missing?
>
> Thanks for the help.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



-- 
John F. Davis

独树一帜

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to