Code Monkey home page Code Monkey logo

tools.trace's Introduction

clojure.tools.trace

A Clojure trace tool. Defines tracing macros/fns to help you see what your code is doing.

Formerly known as clojure.contrib.trace.

Releases and Dependency Information

Latest stable release: 0.7.5

Leiningen dependency information:

    [org.clojure/tools.trace "0.7.5"]

Maven dependency information:

    <dependency>
      <groupId>org.clojure</groupId>
      <artifactId>tools.trace</artifactId>
      <version>0.7.5</version>
    </dependency>

Example Usage

(use 'clojure.tools.trace)

(trace (* 2 3)) ;; To trace a value

(trace tag (* 2 3)) ;; To trace a value and assign a trace tag

(deftrace fubar [x v] (+ x v)) ;; To trace a function call and its return value

(trace-forms (+ 1 3) (* 5 6) (/ 1 0))

(trace-ns myown.namespace) ;; To dynamically trace/untrace all fns in a name space (untrace-ns myown.namespace)

(trace-vars myown.namespace/fubar) ;; To dynamically trace/untrace specific fns (untrace-vars myown.namespace/fubar)
 

Developer Information

Change Log

  • Release 0.7.5 Dec 1, 2012: Luc Préfontaine

    • Fixed README and comments in source file
  • Release 0.7.4 Dec 1, 2012: Luc Préfontaine

    • added traced? and traceable/ fns
    • removed reflection warnings
  • Release 0.7.3 March 4, 2012: Luc Préfontaine

    • added macro wrappers around fns allowing dynamic tracing.
  • Release 0.7.2 Feb. 20, 2012: Luc Préfontaine

    • added contribution from Michał Marczyk and Don Jackson to allow dynamic tracing of fn vars and all fns in a given namespace.
  • Release 0.7.1 on 2011-09-18

    • moved it to new contrib modular struct
    • made it 1.2/1.3 compliant
    • supported doc strings
    • added a trace-form macro, from Jonathan Fischer
  • Changes from clojure.trace

    • replaced trace-out with tracer
    • made trace a function instead of a macro (suggestion from Stuart Halloway)
    • added trace-fn-call

Copyright and License

Copyright (c) Stuart Sierra, Michel Salim, Luc Préfontaine, Jonathan Fischer Friberg, Michał Marczyk, 2011-2012. All rights reserved. The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software.

tools.trace's People

Contributors

lucprefontaine avatar michalmarczyk avatar nahuel avatar tomfaulhaber avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.