A graphical inspector for Java objects and Clojure data structures
Clojure
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
resources
src/inspector_jay
test/inspector_jay
.classpath
.gitattributes
.gitignore
.project
LICENSE.txt
README.md
RELEASES.txt
project.clj

README.md

Inspector Jay

Inspector Jay is an inspection utility that can help you to debug and/or understand Clojure/Java code. Just pass an object or data structure to the inspect function and you can quickly examine its contents in a simple graphical user interface.

  • Inspect just about anything reachable from an object by navigating Inspector Jay's tree structure.
  • Examine the field values of objects and the return values of invoked methods.
  • Similar to clojure.inspector, Clojure data structures and Java collections can also be examined.
  • Inspector Jay can be used in both Clojure and Java applications.

Inspector Jay logo

Installation

If you're using Leiningen, add [inspector-jay "0.3"] to the dependencies in your project.clj file.

If you're using Maven, add the following dependency to your pom.xml file:

<dependency>
  <groupId>inspector-jay</groupId>
  <artifactId>inspector-jay</artifactId>
  <version>0.3</version>
</dependency>

Finally, you can also download Inspector Jay as a stand-alone .jar file.

To find out what's new in the latest version of Inspector Jay, have a look at the release notes.

Usage

If you're using Clojure, give these examples a try in the REPL:

(use '(inspector-jay core))
(inspect (new java.io.File "."))
(inspect [[1 :2] {:three 3.0 :four "4"}])
(inspect (new javax.swing.JFrame) :inherited false :private true)

Note that calls to the inspect function can be configured with various keyword arguments. The complete list of configuration options is available in gui.clj/default-options.

If you're using Java, you can call Inspector Jay as follows:

inspectorjay.InspectoryJay.inspect(new java.io.File("."));

License

Inspector Jay is released under the BSD 3-Clause license.