Show function arguments which is a pointer/ref to a class #1492
Replies: 3 comments 5 replies
-
I think it's related to #1258. Actually we print type names when the arguments are strict or class and passed by value. So it'd be possible to do that but I'm not sure how useful it is. Also tracking a correct type can be difficult and language-dependent. |
Beta Was this translation helpful? Give feedback.
-
Instead of just printing the type name, is it possible to capture the value of the arguments when it's passed in as a pointer/ref ? The use case is, say we have a batch job that process 10k accounts daily. Each account is passed in to a function as a pointer to be updated. Later it's found that one account was not updated correctly, we want to compare that account's values before and after run by the function. Does it make sense? |
Beta Was this translation helpful? Give feedback.
-
Something like in #661 but it might accept function argument. It could display the requested (scalar) value at entry and exit of the function. Ideally with debug info, we can do something with name Some work need to be done for parsing those syntax and detect types. Also it should make sure that it doesn't crash the program by accessing invalid memory region or something. |
Beta Was this translation helpful? Give feedback.
-
hi,
Is it possible to show the function argument when the type is a pointer or ref to a class? e.g.,
void foo(Point* pt) {...}
or
void foo(Point& pt) {...}
Right now it seems to show the address.
A follow up question is, these functions usually modify the input. Although the return type is void, is it possible to show the value of the input argument when exit the function?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions