@@ -53,10 +53,10 @@ You can start a repl with FlowStorm with a single command like this :
5353[%nowrap,bash]
5454----
5555;; on Linux and OSX
56- clj -Sforce -Sdeps '{:deps {} :aliases {:dev {:classpath-overrides {org.clojure/clojure nil} :extra-deps {com.github.flow-storm/clojure {:mvn/version "1.12.0-9"} com.github.flow-storm/flow-storm-dbg {:mvn/version "4.2.0 "}}}}}' -A:dev
56+ clj -Sforce -Sdeps '{:deps {} :aliases {:dev {:classpath-overrides {org.clojure/clojure nil} :extra-deps {com.github.flow-storm/clojure {:mvn/version "1.12.0-9"} com.github.flow-storm/flow-storm-dbg {:mvn/version "4.2.1 "}}}}}' -A:dev
5757
5858;; on Windows
59- clj -Sforce -Sdeps '{:deps {} :aliases {:dev {:classpath-overrides {org.clojure/clojure nil} :extra-deps {com.github.flow-storm/clojure {:mvn/version """1.12.0-9"""} com.github.flow-storm/flow-storm-dbg {:mvn/version """4.2.0 """}}}}}' -A:dev
59+ clj -Sforce -Sdeps '{:deps {} :aliases {:dev {:classpath-overrides {org.clojure/clojure nil} :extra-deps {com.github.flow-storm/clojure {:mvn/version """1.12.0-9"""} com.github.flow-storm/flow-storm-dbg {:mvn/version """4.2.1 """}}}}}' -A:dev
6060----
6161
6262Pasting that command on your terminal will bring up a repl with _FlowStorm_ and the compiler swapped by _ClojureStorm_. When the repl comes up
@@ -78,7 +78,7 @@ If your project is using deps.edn, you can add <<#_global_deps_edn_aliases,a glo
7878 {;; for disabling the official compiler
7979 :classpath-overrides {org.clojure/clojure nil}
8080 :extra-deps {com.github.flow-storm/clojure {:mvn/version "1.12.0-9"}
81- com.github.flow-storm/flow-storm-dbg {:mvn/version "4.2.0 "}}}}}
81+ com.github.flow-storm/flow-storm-dbg {:mvn/version "4.2.1 "}}}}}
8282----
8383
8484What gets instrumented will be determined automatically by ClojureStorm from your project. You can always disable this
@@ -107,7 +107,7 @@ If your project uses lein, you can add <<#_global_leiningen_profiles,a global>>
107107(defproject my.project "1.0.0"
108108 :profiles {:1.12-storm
109109 {:dependencies [[com.github.flow-storm/clojure "1.12.0-9"]
110- [com.github.flow-storm/flow-storm-dbg "4.2.0 "]]
110+ [com.github.flow-storm/flow-storm-dbg "4.2.1 "]]
111111 :exclusions [org.clojure/clojure]}}
112112 ...)
113113----
@@ -150,7 +150,7 @@ You can setup your global `~/.clojure/deps.edn` (on linux and macOS) or `%USERPR
150150 :aliases
151151 {:1.12-storm {:classpath-overrides {org.clojure/clojure nil}
152152 :extra-deps {com.github.flow-storm/clojure {:mvn/version "1.12.0-9"}
153- com.github.flow-storm/flow-storm-dbg {:mvn/version "4.2.0 "}}
153+ com.github.flow-storm/flow-storm-dbg {:mvn/version "4.2.1 "}}
154154 :jvm-opts ["-Dflowstorm.theme=dark"
155155 "-Dflowstorm.fileEditorCommand=emacsclient -n +<<LINE>>:0 <<FILE>>"
156156 "-Dflowstorm.jarEditorCommand=emacsclient --eval '(let ((b (cider-find-file \"jar:file:<<JAR>>!/<<FILE>>\"))) (with-current-buffer b (switch-to-buffer b) (goto-char (point-min)) (forward-line (1- <<LINE>>))))'"]}
@@ -178,7 +178,7 @@ You can setup your global `~/.lein/profiles.clj` (on linux and macOS) or `%USERP
178178----
179179{:1.12-storm
180180 {:dependencies [[com.github.flow-storm/clojure "1.12.0-9"]
181- [com.github.flow-storm/flow-storm-dbg "4.2.0 "]]
181+ [com.github.flow-storm/flow-storm-dbg "4.2.1 "]]
182182 :exclusions [org.clojure/clojure]
183183 :jvm-opts ["-Dflowstorm.theme=dark"
184184 ;; change for your specific editor
@@ -210,10 +210,10 @@ If you use the https://clojure.org/guides/deps_and_cli[clojure cli] you can star
210210[,bash]
211211----
212212;; on Linux and OSX
213- clj -Sforce -Sdeps '{:deps {com.github.flow-storm/flow-storm-dbg {:mvn/version "4.2.0 "}}}'
213+ clj -Sforce -Sdeps '{:deps {com.github.flow-storm/flow-storm-dbg {:mvn/version "4.2.1 "}}}'
214214
215215;; on Windows
216- clj -Sforce -Sdeps '{:deps {com.github.flow-storm/flow-storm-dbg {:mvn/version """4.2.0 """}}}'
216+ clj -Sforce -Sdeps '{:deps {com.github.flow-storm/flow-storm-dbg {:mvn/version """4.2.1 """}}}'
217217----
218218
219219If you are a https://leiningen.org/[lein] user add the dependency to your project.clj `:dependencies` and run `lein repl`.
@@ -317,7 +317,7 @@ Then, modify your `deps.edn` dev profile to look like this :
317317 ;; bring ClojureScriptStorm
318318 com.github.flow-storm/clojurescript {:mvn/version "1.11.132-8"}
319319 ;; add FlowStorm runtime dep
320- com.github.flow-storm/flow-storm-inst {:mvn/version "4.2.0 "}}
320+ com.github.flow-storm/flow-storm-inst {:mvn/version "4.2.1 "}}
321321 :jvm-opts ["-Dcljs.storm.instrumentOnlyPrefixes=your-app-base-ns"
322322 "-Dcljs.storm.instrumentEnable=true"
323323 "-Dflowstorm.startRecording=false"]}}}
@@ -339,7 +339,7 @@ Whenever your need the debugger, on a terminal run the ui with your shadow-cljs.
339339
340340[,bash]
341341----
342- clj -Sforce -Sdeps '{:deps {com.github.flow-storm/flow-storm-dbg {:mvn/version "4.2.0 "}}}' -X flow-storm.debugger.main/start-debugger :port 9000 :repl-type :shadow :build-id :my-app
342+ clj -Sforce -Sdeps '{:deps {com.github.flow-storm/flow-storm-dbg {:mvn/version "4.2.1 "}}}' -X flow-storm.debugger.main/start-debugger :port 9000 :repl-type :shadow :build-id :my-app
343343----
344344
345345and then reload you page so it connects to it.
@@ -365,21 +365,21 @@ To compile instrumented files :
365365
366366[%nowrap,bash]
367367----
368- clj -J-Dcljs.storm.instrumentOnlyPrefixes=org.foo -J-Dcljs.storm.instrumentEnable=true -Sdeps '{:paths ["src"] :deps {com.github.flow-storm/clojurescript {:mvn/version "1.11.132-8"} com.github.flow-storm/flow-storm-inst {:mvn/version "4.2.0 "}}}' -M -m cljs.main -co '{:preloads [flow-storm.storm-preload] :main org.foo.core}' --compile
368+ clj -J-Dcljs.storm.instrumentOnlyPrefixes=org.foo -J-Dcljs.storm.instrumentEnable=true -Sdeps '{:paths ["src"] :deps {com.github.flow-storm/clojurescript {:mvn/version "1.11.132-8"} com.github.flow-storm/flow-storm-inst {:mvn/version "4.2.1 "}}}' -M -m cljs.main -co '{:preloads [flow-storm.storm-preload] :main org.foo.core}' --compile
369369----
370370
371371To run a repl that instrument everything under org.foo :
372372
373373[%nowrap,bash]
374374----
375- clj -J-Dcljs.storm.instrumentOnlyPrefixes=org.foo -J-Dcljs.storm.instrumentEnable=true -Sdeps '{:paths ["src"] :deps {com.github.flow-storm/clojurescript {:mvn/version "1.11.132-8"} com.github.flow-storm/flow-storm-inst {:mvn/version "4.2.0 "}}}' -M -m cljs.main -co '{:preloads [flow-storm.storm-preload] :main org.foo.core}' --repl
375+ clj -J-Dcljs.storm.instrumentOnlyPrefixes=org.foo -J-Dcljs.storm.instrumentEnable=true -Sdeps '{:paths ["src"] :deps {com.github.flow-storm/clojurescript {:mvn/version "1.11.132-8"} com.github.flow-storm/flow-storm-inst {:mvn/version "4.2.1 "}}}' -M -m cljs.main -co '{:preloads [flow-storm.storm-preload] :main org.foo.core}' --repl
376376----
377377
378378Then run the _FlowStorm_ UI :
379379
380380[%nowrap,bash]
381381----
382- clj -Sforce -Sdeps '{:deps {com.github.flow-storm/flow-storm-dbg {:mvn/version "4.2.0 "}}}' -X flow-storm.debugger.main/start-debugger
382+ clj -Sforce -Sdeps '{:deps {com.github.flow-storm/flow-storm-dbg {:mvn/version "4.2.1 "}}}' -X flow-storm.debugger.main/start-debugger
383383----
384384
385385And now refresh your browser page so your browser app connects to the UI.
@@ -395,7 +395,7 @@ First you need to add _FlowStorm_ dependency to your project dependencies, like
395395$ cat shadow-cljs.edn
396396
397397{...
398- :dependencies [... [com.github.flow-storm/flow-storm-inst "4.2.0 "]]
398+ :dependencies [... [com.github.flow-storm/flow-storm-inst "4.2.1 "]]
399399
400400 ;; the next two lines aren't needed but pretty convenient
401401 :nrepl {:port 9000}
@@ -426,10 +426,10 @@ so to start the debugger and connect to it you run :
426426[,bash]
427427----
428428;; on linux and mac-os
429- clj -Sforce -Sdeps '{:deps {com.github.flow-storm/flow-storm-dbg {:mvn/version "4.2.0 "}}}' -X flow-storm.debugger.main/start-debugger :port 9000 :repl-type :shadow :build-id :my-build-id
429+ clj -Sforce -Sdeps '{:deps {com.github.flow-storm/flow-storm-dbg {:mvn/version "4.2.1 "}}}' -X flow-storm.debugger.main/start-debugger :port 9000 :repl-type :shadow :build-id :my-build-id
430430
431431;; on windows
432- clj -Sforce -Sdeps '{:deps {com.github.flow-storm/flow-storm-dbg {:mvn/version """4.2.0 """}}}' -X flow-storm.debugger.main/start-debugger :port 9000 :repl-type :shadow :build-id :my-build-id
432+ clj -Sforce -Sdeps '{:deps {com.github.flow-storm/flow-storm-dbg {:mvn/version """4.2.1 """}}}' -X flow-storm.debugger.main/start-debugger :port 9000 :repl-type :shadow :build-id :my-build-id
433433----
434434
435435And that is all you need, the debugger GUI will pop up and everything will be ready.
@@ -462,7 +462,7 @@ For this you can start the debugger like before but without any parameters, like
462462
463463[,bash]
464464----
465- clj -Sforce -Sdeps '{:deps {com.github.flow-storm/flow-storm-dbg {:mvn/version "4.2.0 "}}}' -X flow-storm.debugger.main/start-debugger
465+ clj -Sforce -Sdeps '{:deps {com.github.flow-storm/flow-storm-dbg {:mvn/version "4.2.1 "}}}' -X flow-storm.debugger.main/start-debugger
466466----
467467
468468And then go to your app code and call `(flow-storm.runtime.debuggers-api/remote-connect)` maybe on your main, so every time your program starts
@@ -515,10 +515,10 @@ So let's say you want to run two debuggers, one for your page and one for a webw
515515[,bash]
516516----
517517# on one terminal start your app debugger instance
518- clj -Sforce -Sdeps '{:deps {com.github.flow-storm/flow-storm-dbg {:mvn/version "4.2.0 "}}}' -X flow-storm.debugger.main/start-debugger :port 9000 :repl-type :shadow :build-id :my-app :ws-port 7722
518+ clj -Sforce -Sdeps '{:deps {com.github.flow-storm/flow-storm-dbg {:mvn/version "4.2.1 "}}}' -X flow-storm.debugger.main/start-debugger :port 9000 :repl-type :shadow :build-id :my-app :ws-port 7722
519519
520520# on a second terminal start your webworker debugger instance
521- clj -Sforce -Sdeps '{:deps {com.github.flow-storm/flow-storm-dbg {:mvn/version "4.2.0 "}}}' -X flow-storm.debugger.main/start-debugger :port 9000 :repl-type :shadow :build-id :my-web-worker :ws-port 7733
521+ clj -Sforce -Sdeps '{:deps {com.github.flow-storm/flow-storm-dbg {:mvn/version "4.2.1 "}}}' -X flow-storm.debugger.main/start-debugger :port 9000 :repl-type :shadow :build-id :my-web-worker :ws-port 7733
522522----
523523
524524Now you also need to configure your builds to tell them what port they should connect to.
@@ -593,7 +593,7 @@ Then modify the resulting deps.edn to add the FlowStorm alias like this :
593593{...
594594 :aliases {:dev {:classpath-overrides {org.clojure/clojure nil} ;; for disabling the official compiler
595595 :extra-deps {com.github.flow-storm/clojure {:mvn/version "1.12.0-9"}
596- com.github.flow-storm/flow-storm-dbg {:mvn/version "4.2.0 "}}
596+ com.github.flow-storm/flow-storm-dbg {:mvn/version "4.2.1 "}}
597597 :jvm-opts ["-Dclojure.storm.instrumentOnlyPrefixes=user"]}}}
598598----
599599
@@ -1725,7 +1725,7 @@ After the tunnel is established, you can run you debugger UI like this :
17251725
17261726[,bash]
17271727----
1728- clj -Sforce -Sdeps '{:deps {com.github.flow-storm/flow-storm-dbg {:mvn/version "4.2.0 "}}}' -X flow-storm.debugger.main/start-debugger :port 9000
1728+ clj -Sforce -Sdeps '{:deps {com.github.flow-storm/flow-storm-dbg {:mvn/version "4.2.1 "}}}' -X flow-storm.debugger.main/start-debugger :port 9000
17291729----
17301730
17311731and that is it.
@@ -1734,7 +1734,7 @@ If you need to connect the debugger to a remote process without a ssh tunnel or
17341734
17351735[,bash]
17361736----
1737- clj -Sforce -Sdeps '{:deps {com.github.flow-storm/flow-storm-dbg {:mvn/version "4.2.0 "}}}' -X flow-storm.debugger.main/start-debugger :port NREPL-PORT :runtime-host '"YOUR-APP-BOX-IP-ADDRESS"' :debugger-host '"YOUR-BOX-IP-ADDRESS"' :ws-port WS-SERVER-PORT
1737+ clj -Sforce -Sdeps '{:deps {com.github.flow-storm/flow-storm-dbg {:mvn/version "4.2.1 "}}}' -X flow-storm.debugger.main/start-debugger :port NREPL-PORT :runtime-host '"YOUR-APP-BOX-IP-ADDRESS"' :debugger-host '"YOUR-BOX-IP-ADDRESS"' :ws-port WS-SERVER-PORT
17381738----
17391739
17401740== Docker
@@ -2227,7 +2227,7 @@ can start a debugger and connect to it by running :
22272227
22282228[,bash]
22292229----
2230- clj -Sforce -Sdeps '{:deps {com.github.flow-storm/flow-storm-dbg {:mvn/version "4.2.0 "}}}' -X flow-storm.debugger.main/start-debugger :port 9000 :repl-type :shadow :build-id :your-app-build-id :debugger-host '"YOUR_DEV_MACHINE_IP"'
2230+ clj -Sforce -Sdeps '{:deps {com.github.flow-storm/flow-storm-dbg {:mvn/version "4.2.1 "}}}' -X flow-storm.debugger.main/start-debugger :port 9000 :repl-type :shadow :build-id :your-app-build-id :debugger-host '"YOUR_DEV_MACHINE_IP"'
22312231----
22322232
22332233You also need to make it possible for the device to connect back to the debugger on port 7722. You can accomplish this by running :
0 commit comments