It's cumbersome, but I've had luck with Evaluate Expression <fully qualified
class>.<static>. For example, in my database test class, I can evaluate
com.baa.testdb.TestDB.useHost to see the static useHost string's id, then
look at that id to see the string.  None of useHost, this.useHost, or
TestDB.useHost works.

Martin

----- Original Message -----
From: Steve Peterson <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 06, 2000 2:33 PM
Subject: 2.1.6: inspect variables


> I'm using JDEbug in 2.1.6 beta 22 and am wondering if there is a way to
> inspect variables other than local ones (i.e., class variables).  If I'm
> debugging a class that declares
>
>    private static String configDir = null;
>
> and have the point in configDir in the statement
>
>        if (configDir != null) {
>
> and do JDEbug->Display->Variable, I get the message:
>
> Error: cannot evaluate "configDir".
>   Reason: Parse error in expression. Are you accessing local variables
> without compiling with -g?.
>
> I can point at variables local to the function and it works
> properly.  Typing in "this.configDir" and trying to display that doesn't
> work either.
>
> Steve
>
>
>
> --
> Steve Peterson                               +1 952 948 9729
> Principal Consultant                     FAX +1 612 677 3050
> Virtation Technologies, Inc.            http://virtation.com
>
>

Reply via email to