I just started developing Android apps in Eclipse. I usually code in Visual Studio, and there is one thing that I just cant figure out how to do in Eclipse:
For example, if i have the following method, and want to inspect the variable i
:
public void Foo()
{
int i = 1;
}
In visual studio, I am able to set the breakpoint on the closing }
, and can inspect the variable:
public void Foo()
{
int i = 1;
} // <-- Breakpoint here
But in Eclipse, I'm only able to set it on the variable itself:
public void Foo()
{
int i = 1; //<-- Here
}
Which result in that i cannot inspect the variable, unless i add another line of code and break later in the method.
TL;DR: How do I inspect a variable in Eclipse while I'm in debug mode?