org.candelbio.multitool.dev

Utility functions for development only

apropos

(apropos str-or-pattern)

Given a regular expression or stringable thing, return a seq of all definitions in all currently-loaded namespaces that match the str-or-pattern.

capture

(capture tag thing)

capture-to-file

(capture-to-file thunk file)

Capture standard output to file

captures

class-source

(class-source klass)

Return the jar file that defines a given class

dbg

macro

(dbg x)

Wrap this around an expression; will print expression and value when run.

debuggable

macro

(debuggable tag captures & body)

tag is a keyword, captures is a list of variable names. Wrap this around an execution; the variables will be captured in the stacktrace

get-methods

(get-methods class)

Return a list of all method names on class

pp

(pp thing)

tapr

(tapr thing)

Print thing and return it as value