[#344] add nREPL docs

This commit is contained in:
Michiel Borkent 2020-04-12 16:36:47 +02:00
parent 4dd008434b
commit ddb2498664

View file

@ -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
```