Can the probekit change the method param,how to ? [message #85522] |
Wed, 18 October 2006 05:42  |
Eclipse User |
|
|
|
Originally posted by: feng-bing.xu.verigy.com
hi,
anyone have used probekit to change the method param?
i made a entry fragment to instrument some method like "methodname(String
str) and , in the "Data Type" part, I used a "args" Data type named
"methodargs".
in the fragment, i write some program like "methodargs[0]="sss"
after everything do, when i run the instrumentd program, i find the method
args is not changed.
Is it designed only to read paras ?
or any method to change the paras used in a method?
PS: i am sure i have do instrument to the class and everything related to
config and environment is OK
|
|
|
Re: Can the probekit change the method param,how to ? [message #85553 is a reply to message #85522] |
Wed, 18 October 2006 10:18  |
Eclipse User |
|
|
|
Originally posted by: nmehrega.ca.ibm.com
This is a multipart message in MIME format.
--=_alternative 004E93638525720B_=
Content-Type: text/plain; charset="US-ASCII"
No, you can't change the method parameter in your probe. Probekit is
meant for collecting runtime data about an application, it's not meant to
change the behaviour of that application. The method arguments you get in
your entry fragment are a copy of those arguments, they're not the actual
references to your method arguments.
Navid Mehregani
--=_alternative 004E93638525720B_=
Content-Type: text/html; charset="US-ASCII"
<br><font size=2 face="sans-serif">No, you can't change the method parameter
in your probe. Probekit is meant for collecting runtime data about
an application, it's not meant to change the behaviour of that application.
The method arguments you get in your entry fragment are a copy of
those arguments, they're not the actual references to your method arguments.</font>
<br>
<br><font size=2 face="sans-serif">Navid Mehregani</font>
--=_alternative 004E93638525720B_=--
|
|
|
Powered by
FUDForum. Page generated in 0.02805 seconds