Spy / Watch variable in Android (Eclipse)

android, eclipse, java, variables

Solution

First select Debug perspective as:

Then set Breakpoints at places you want:

After that create a Debug configuration via Debug As->Debug Configurations... and then Debug as Android Application as shown below:

Then in Debug perspective you can trace/watch value of your desired variable by pressing F8: That's it, you can also evaluate expressions through Expressions view. If it is not enabled select it from: Window->Show View->Other->Debug->Expressions.

Problem

I am new to Android development with Eclipse. I am asking a very basic question : is it possible to watch / spy the content of a variable during the debugging session? (a bit like in Visual Studio) I know It is a fairly lame question, but I couldn't figure it out myself. thanks in advance, Gallien

Original source

Related problems