Skip to content

Commit

Permalink
alias: add a lib/clojurestorm alias
Browse files Browse the repository at this point in the history
This is the newest and simplest way of using FlowStorm.
It requires you to swap your official Clojure compiler by ClojureStorm only at dev time.
https://flow-storm.github.io/flow-storm-debugger/user_guide.html#_clojurestorm
  • Loading branch information
emilaasa committed Jun 4, 2024
1 parent 6448eb7 commit 5b4417f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,17 @@
:lib/flowstorm
{:extra-deps {com.github.flow-storm/flow-storm-dbg {:mvn/version "3.15.5"}}}

;; This is the simplest way to use FlowStorm.
;; It replaces the Clojure compiler with a patched one that instruments everything.
;; https://flow-storm.github.io/flow-storm-debugger/user_guide.html#_clojurestorm
:lib/clojurestorm
{:classpath-overrides {org.clojure/clojure nil}
:extra-deps {com.github.flow-storm/clojure {:mvn/version "1.11.3-1"}
com.github.flow-storm/flow-storm-dbg {:mvn/version "3.15.5"}}
;; You can optionally add another jvm-opt to restrict the instrumentation:
;; -Dclojure.storm.instrumentOnlyPrefixes=YOUR_INSTRUMENTATION_STRING"
:jvm-opts ["-Dclojure.storm.instrumentEnable=true"]}

;; End of Debug Tools
;; ---------------------------------------------------

Expand Down

0 comments on commit 5b4417f

Please sign in to comment.