is there a way to get the arguments to a function from outside the function?

2013-02-04 Thread larry google groups
I have an app. I would like to have debug mode and a production mode. In the debug mode, I would like it if the arguments to each function were pprint'ed to the terminal. Is there anyway to do this gracefully. I started adding pprint to all of my functions, and then I thought There has got to

Re: is there a way to get the arguments to a function from outside the function?

2013-02-04 Thread Baishampayan Ghose
Checkout http://github.com/clojure/tools.trace ~BG Sent from phone. Please excuse brevity. On 4 Feb 2013 20:48, larry google groups lawrencecloj...@gmail.com wrote: I have an app. I would like to have debug mode and a production mode. In the debug mode, I would like it if the arguments to

Re: is there a way to get the arguments to a function from outside the function?

2013-02-04 Thread Softaddicts
With tools.trace you can turn tracing on or off on the fly using trace-vars or trace-ns. You will get the fn call and its result printed. Luc P. Checkout http://github.com/clojure/tools.trace ~BG Sent from phone. Please excuse brevity. On 4 Feb 2013 20:48, larry google groups