New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplest way to print function called with the arguments that were passed #27
Comments
If I understand your question correctly, in a code like:
You will print the arguments of
Unfortunately the variable names used at calling site ( |
That does work, but it then doesn't say which function was called unlike IC() by itself. I see that there's a config toggle for prefixing the function called to all output - perhaps that is the best way? |
Oh, sure. So you are right. You will need call
With that all calls to IC* macros all around the code will print the source name, line number, and function signature. You gave me a new idea. Maybe a way to print the context along with the values would be nice. Let's say something at the lines of
Food for thought. |
Yep, that would be perfect 👍 |
Did this end up making it in? |
Hi @vadi2. Not yet, but it is on my roadmap. I just need find some free time to put the work on. |
What is the simplest way to print function called with the arguments that were passed? I'm debugging an interface implementation, so I don't have so much control over who is calling me methods; rather I am on the receiving end of them being called.
I can add
IC()
at the beginning of a function to see its name and arguments, but the argument values themselves aren't printed.The text was updated successfully, but these errors were encountered: