(defn break-hook [target & args] (let [return-value (apply target args)] (swank.core/break))) (add-hook '#some.target/function break-hook)