Thanks Mike,  I have used show before, but not @show...Arch

On Sunday, January 4, 2015 5:48:27 AM UTC-5, Arch Call wrote:
>
> I frequently find myself writing Julia snippet scripts like this:
>
>
>  vara = 33
>
> varb = vara * 14
>
> varc = varb * 77
>
> println(“varb = “, varb) #--debug print
>
> println(“varc = “, varc) #--debug print
>
>
>  I would like to eliminate having to enter the variable name twice
>
> in the debug print lines by using a function.
>
>
>  I have tried all kinds of variations of a debug print function like:
>
>
>  function debugprint(somevar)
>
> println(“???? = ”, somevar)
>
> end
>
>
>  What can I put in place of “????” to get the actual Symbol of the 
> variable being passed to debugprint?
>

Reply via email to