I'm wondering if there is a way to look at the values of non-declared variables as they get passed into a function, after that function has been executed. For example, if I am debugging and the line
foo.setBar(baz.getBar());
has already been passed (but is still within scope), how can I see the value of what got passed in to setBar()
? I know that I can see this many other ways, for instance by stepping into the setBar()
call, or by assigning baz.getBar()
to a temporary variable - but that's not what I'm asking.
Edit: Basically, I feel penalized (by losing the ability to see certain information) while debugging, just because I'm not declaring every variable.
And, I know I could inspect bar
after the fact (if I know it hadn't changed) but in this case it's not so simple because I'm dealing with objects that aren't just POJOs or JavaBeans (the object that brought this question up is an HTTP request - and yes, I already did try inspecting it).