Tag Archives: Debugging

Debugging Android apps in Eclipse

This proved to be a little tricky for me. I ran into a problem where Eclipse wouldn’t show me my variables in my Android app.

Apparently, you can only inspect variables in a specific scope within an Android program. You can’t see class variables, etc. In order to see any variables at all, you need to set a breakpoint somewhere near the area you suspect is a problem.

I’m not sure if I needed to do this, but one other thing I did before I got the debugger to finally show me variables was adding the tools directory to my PATH. The explanation for this can be found in this guide. Note that those files are hidden, so you’ll have to learn how to view them on whatever OS you’re using!