D
dvdavins
I think what I'd like to do is impossible, but I'll check here before
giving up.
I'm wiriting a utility method to assist in debugging. It will display
variable names and the values of those variables.
I don't think there's any way for a method to access the values that
exist in the calling context of variable names that the mothod is
passed. And I'm nearly certain there's no way for the method to tell
whether it was passed literals or vaiiables, let alone what the
variable names were.
So I think I'm stuck with requiring redundancy such as
displayVars("key", key, "fullName", fullName);
Am I missing something?
giving up.
I'm wiriting a utility method to assist in debugging. It will display
variable names and the values of those variables.
I don't think there's any way for a method to access the values that
exist in the calling context of variable names that the mothod is
passed. And I'm nearly certain there's no way for the method to tell
whether it was passed literals or vaiiables, let alone what the
variable names were.
So I think I'm stuck with requiring redundancy such as
displayVars("key", key, "fullName", fullName);
Am I missing something?