Re: Setting variables

Nathan Fiedler <[email protected]> Tue, 22 Jan 2008 13:48:06 -0800 (PST)
Newsgroups gmane.comp.java.jswat.user
Message-ID <[email protected]>
The expression evaluator should support this in the form of the assignment operator (=). When your application is stopped via a breakpoint, bring up the expression evaluator window, type in the name of the variable, followed by '=', and then an expression to be assigned to that variable. For example:

myint = 10
mystr = "this is a string"
myvar = MyClass.method(10, anotherMethod("foo"), true)

And so on. The help page for the expression evaluator should mention what features of the Java language are supported (basically all "expressions" except for 'new', 'super', and the ternary operator (?:)).

Thanks

n


----- Original Message ----
From: Leonard S Rann <[email protected]>
To: [email protected]
Sent: Tuesday, January 22, 2008 11:05:07 AM
Subject: [jswat-user] Setting variables


Hello,

I was wondering if it is possible to modify variables when the program 
is suspended. I have not seen a method for this. It is quite important 
to me, as I am working with encrypted data, and it is very difficult to
 
modify the dataset for testing.

Thanks,

Lenny Rann
CTO
Tradavo





      ____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/