27.04.2011 21:48, Tobiah пишет:
I am getting familiar with debugging from eclipse.
I have a thread that runs in the background, and set
a breakpoint in that file. When I debug my program,
I never see it stop there or display the file that
the break is in. Do I need to do something special
in order to select which thread I'm debugging?

No, I have no trouble at all with breakpoints in a multithreaded application.

Note that Eclipse only pauses one thread at a time, which means that other threads keep running while you're stopped at a breakpoint.

Sometimes this complicates debugging, sometimes helps (since the UI thread keeps running).

There may be a setting somewhere in Eclipse to pause all threads, but I've never bothered to look.


Also, as I step through my program, I eventually
get to parts of the Android system, where I'm in
the dark. I get a message about the source file
not being available which makes sense. I just
keep hitting F7, and eventually get back to my
code. Is this a normal routine that people go
through, and can I get and install the source
somewhere so that I could actually step through
the Android code?

I have Android sources installed on my system for debugging (2.3.2, matching my phone) and browsing (2.2, matching my build target), and it really helps in about 3-5% of debugging cases.

You can use Peco Haris' plugin for Eclipse, or you can download and install the sources yourself, following my instructions:

http://kmansoft.wordpress.com/2011/01/27/android-sources-for-debugging/

and in general:

http://kmansoft.wordpress.com/category/tools/

-- Kostya


Thanks!

Tobiah



--
Kostya Vasilyev -- http://kmansoft.wordpress.com

--
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