Skip to content

Instantly share code, notes, and snippets.

@amtal
Created March 17, 2011 08:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amtal/873987 to your computer and use it in GitHub Desktop.
Save amtal/873987 to your computer and use it in GitHub Desktop.
Augment code with tracing capability!
> (c 'trace)
#(module trace)
> (l 'trace)
(#(module trace))
> (: trace start)
IN [ myfunc, x=0 ]
IN [ myfunc, x=1 ]
IN [ myfunc, x=2 ]
IN [ myfunc, x=3 ]
OUT[ myfunc, x=3 => 0 ]
OUT[ myfunc, x=2 => 0 ]
OUT[ myfunc, x=1 => 0 ]
OUT[ myfunc, x=0 => 0 ]
0
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment