A simple java trace utility
- Lein 1 (didn't move to lein 2 yet)
- JDK 1.6
-
Checkout into a directory (say spy)
-
project.clj: pointtools.jarto the one in your JDK -
Change
.spy.clj- Change
:hostand:portto point to the remote debug session - Set
:classesto the base package of the classes to trace - Optionally, change
exclude-classeslist to packages/classes you want to exclude from trace
- Change
-
Start repl (in the shell):
spy$ bin/lein repl -
Start spy:
spy=> (spy)This is assuming remote debug session is already started with jvm args
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=<port-number> -
Show trace (and stop spy):
spy=> (gui) -
Exit with
Ctrl-C
Copyright (C) 2011 BMLs
Distributed under the Eclipse Public License, the same as Clojure.