Skip to content

achoudhary/jspy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spy

A simple java trace utility

Requirements

  1. Lein 1 (didn't move to lein 2 yet)
  2. JDK 1.6

Usage

  • Checkout into a directory (say spy)

  • project.clj: point tools.jar to the one in your JDK

  • Change .spy.clj

    • Change :host and :port to point to the remote debug session
    • Set :classes to the base package of the classes to trace
    • Optionally, change exclude-classes list to packages/classes you want to exclude from trace
  • 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

License

Copyright (C) 2011 BMLs
Distributed under the Eclipse Public License, the same as Clojure.

About

a simple java trace utility

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published