Re: Debugging without symbol information

Nathan Fiedler <[email protected]> 23 Jul 2003 08:56:41 -0700
Newsgroups gmane.comp.java.jswat.devel
Organization Blue Marsh Softworks
Message-ID <1058975801.6122.11.camel@nuts>
That is interesting, and would be useful if the JDI presented a means of
accessing variables by index. However, StackFrame requires a
LocalVariable to get a Value and, as far as I can see, you need local
variable information to get those.

What I have not tried, and I feel pretty sure it would not work anyway,
is to call arguments() on the Method at the Location of the StackFrame.
That returns LocalVariable instances, too, and I suspect as above that
it requires local variable information (names, not indices).

n


On Wed, 2003-07-23 at 08:08, Umberto Ferraro wrote:
> Thanks for your answer. However, I found the following statement in
> the Java Debug Wire Protocol specification:
> 
> "GetValues Command (1)
> 
> Returns  the  value  of  one or more local variables in a given frame.
> Each variable must be visible at the frame's code index. Even if local
> variable  information is not available, values can be retrieved if the
> front-end  is  able  to  determine  the  correct local variable index.
> (Typically, this index can be determined for method arguments from the
> method   signature   without   access  to  the  local  variable  table
> information.)"
> 
> 
> Do you think that it could help? I have not been help to understand
> how to build the local variable index, do you have any suggestion?