From ddb2498664a100831cdc26969bac2d07ca5f9c48 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Sun, 12 Apr 2020 16:36:47 +0200 Subject: [PATCH] [#344] add nREPL docs --- doc/repl.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/doc/repl.md b/doc/repl.md index 26d211bc..b2ccca86 100644 --- a/doc/repl.md +++ b/doc/repl.md @@ -109,3 +109,21 @@ yourself: (.deleteOnExit (File. ".nrepl-port")) (.waitFor proc)) ``` + +### Debugging the nREPL server + +To debug the nREPL server from the binary you can run: + +``` shell +$ BABASHKA_DEV=true bb --nrepl-server 1667 +``` + +This will print all the incoming messages. + +To debug the nREPL server from source: + +``` clojure +$ git clone https://github.com/borkdude/babashka --recursive +$ cd babashka +$ BABASHKA_DEV=true clojure -A:main --nrepl-server 1667 +```