Wondering what the easiest way is to get debug prints.
I am looking though some code and there is some functions that use a lot of generic text arguments as inputs. So I am looking for an easy way to print the line without having to modify it to avoid getting typos or errors in there
simple example, a line in the code
someFunction('%s_someString', variable,
'%s_moreStrings' %someOtherString, someMoreString, someObject)
So instead of checking
print 'someFunction('%s_someString', %s, '%s_moreStrings', 'someObject') %
(someOtherString, variable, someMoreString)
I am looking for a way to just print exactly that. I tried to do something like writing a function that would print a string and eval it, but this does not work the way I intend
someFunction('someOtherString_someString', variable,
'someMoreString_moreStrings', someObject)
Is there a way to do that
x = 1; y=2; z = f(x, y)to printf(1, 2), and setz?