tools.trace

Two convenience predicate functions useful for IDE-tools

Details

  • Type: Enhancement Enhancement
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
  • Patch:
    Code and Test

Description

In our IDE-tool clj-ns-browser, we show the user a list of vars and make it easy to add a trace by selecting a var and clicking a button.

In order to only enable the button for a var that is traceable, we use predicate "var-traceable?".

In order to change the button text from "trace" to "untrace", we use predicate "var-traced?".

Both "var-traceable?" and "var-traced?" are aware of tools.trace internals - ideally, we would like to remain oblivious to trace's inners...

Our implementations for the predicates is at: https://gist.github.com/2472261

Thanks for the great tool!

Activity

Hide
Luc Préfontaine added a comment -

Done, however the names where changed to traced? and traceable?.

Show
Luc Préfontaine added a comment - Done, however the names where changed to traced? and traceable?.
Luc Préfontaine made changes -
Field Original Value New Value
Status Open [ 1 ] In Progress [ 3 ]
Luc Préfontaine made changes -
Status In Progress [ 3 ] Open [ 1 ]
Luc Préfontaine made changes -
Status Open [ 1 ] In Progress [ 3 ]
Hide
Luc Préfontaine added a comment -

Done is 0.7.4

Show
Luc Préfontaine added a comment - Done is 0.7.4
Hide
Luc Préfontaine added a comment -

Done, "good" version is 0.7.5 (readme & comments need an update in 0.7.4")

Show
Luc Préfontaine added a comment - Done, "good" version is 0.7.5 (readme & comments need an update in 0.7.4")
Luc Préfontaine made changes -
Patch Code and Test [ 10002 ]
Resolution Completed [ 1 ]
Status In Progress [ 3 ] Resolved [ 5 ]

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: