Skip to content

MichaelDrogalis/night-vision

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

night-vision

Peer through the darkness of running code.

Usage

In your Leiningen profile:

{:user
 {:dependencies [[night-vision "0.1.0-SNAPSHOT"]]
  :injections [(require 'night-vision.goggles)
               (require 'clojure.pprint)]}}

Enable Night Vision Goggles on a quoted namespace: (night-vision.goggles/introspect-ns! 'user)

Example

user=> (defn odd?? [n] (odd? n))
#'user/odd??
user=> (defn even?? [n] (not (odd?? n)))
#'user/even??
user=> (odd?? 1)
true
user=> (odd?? 2)
false
user=> (night-vision.goggles/introspect-ns! 'user)
nil
user=> (odd?? 1)
"------------------------------------------------"
"Invoking #'user/odd??"
"Actual arguments are: (1)"
"------------------------------------------------"
"------------------------------------------------"
"Returning from #'user/odd??"
"Return value is: true"
"------------------------------------------------"
true
user=> (odd?? 2)
"------------------------------------------------"
"Invoking #'user/odd??"
"Actual arguments are: (2)"
"------------------------------------------------"
"------------------------------------------------"
"Returning from #'user/odd??"
"Return value is: false"
"------------------------------------------------"
false
user=> (even?? 2)
"------------------------------------------------"
"Invoking #'user/even??"
"Actual arguments are: (2)"
"------------------------------------------------"
"------------------------------------------------"
"Invoking #'user/odd??"
"Actual arguments are: (2)"
"------------------------------------------------"
"------------------------------------------------"
"Returning from #'user/odd??"
"Return value is: false"
"------------------------------------------------"
"------------------------------------------------"
"Returning from #'user/even??"
"Return value is: true"
"------------------------------------------------"
true

License

Copyright © 2013 Michael Drogalis

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

See through the darkness of a running program.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published