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 authored and practicalli-johnny committed Jun 7, 2024
1 parent 2701823 commit bc5747d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.org
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
** Added
- dev: add `deps-deprecated.edn` to cljstyle `:ignore` rule
- dev: add `CHANGELOG.org` to Git ignore inclusive patterns
- alias: add `:lib/clojurestorm` to run Flowstorm debugger with ClojureStorm compiler

** Updated
- Update library versions using `make outdated`
Expand Down
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 bc5747d

Please sign in to comment.