Fork me on GitHub
#cider
<
2020-03-26
>
bbss00:03:43

😅 right, thanks again!

bozhidar07:03:17

You’re welcome!

finn.volkel09:03:46

Is there a way to debug code running in a socket server launched via clojure.core.server/socket-server?

bozhidar09:03:57

@finn.volkel I assume this should work just like any other Clojure (assuming you mean start CIDER and run the socket server inside it).

bozhidar09:03:23

That’s how I debug nREPL for instance - start nREPL and boot a new instance of it from ti.

finn.volkel10:03:50

ok, in my case this doesn't seem to work properly

finn.volkel10:03:32

it's a pretty big application so don't know exactly where stuff goes awry, but I am certain I am passing through functions that are instrumented

finn.volkel10:03:08

I also have the impression it's not deterministic, in rare cases it works

finn.volkel15:03:37

The main app talks with the repl asynchronous, I guess this is the issue.

bozhidar15:03:49

Yeah, that could explain it. It won’t be the first time I hear the debugger is misbehaving in async contexts.