This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-02-03
Channels
- # bangalore-clj (1)
- # beginners (160)
- # boot (174)
- # cider (57)
- # cljs-dev (16)
- # cljsrn (5)
- # clojure (144)
- # clojure-argentina (1)
- # clojure-austin (6)
- # clojure-finland (2)
- # clojure-france (4)
- # clojure-russia (185)
- # clojure-serbia (4)
- # clojure-spec (61)
- # clojure-uk (126)
- # clojurescript (212)
- # community-development (7)
- # core-async (2)
- # cursive (17)
- # datomic (210)
- # emacs (10)
- # euroclojure (2)
- # gsoc (23)
- # hoplon (86)
- # jobs (8)
- # lein-figwheel (9)
- # luminus (19)
- # lumo (12)
- # off-topic (4)
- # om (14)
- # om-next (6)
- # pedestal (38)
- # perun (11)
- # planck (35)
- # portland-or (2)
- # ring (1)
- # ring-swagger (28)
- # specter (6)
- # untangled (6)
- # yada (2)
@liamd Yes, there are two ways, depending whether you want to run it within the IDE or in a terminal.
If you want to run it in the IDE, then you should be able to create a lein run config, turn on trampoline and just debug it.
If you want to run it in a terminal, it’s a little more complicated. First, create a remote debug Run Config (called “Remote” - this is not the remote REPL option). Copy the “Command line arguments for running remote JVM”, and then put those in your Leiningen project.clj
(under :jvm-args IIRC, but I’m not 100%). You might want to change suspend=y
in the arguments, this will cause the JVM to pause at startup until the debugger connects.
Then you can run your app as normal on the command line, the JVM will start in debug mode and you’ll be able to run your Remote config to connect to it.
is there a way to tell the Cursive Remote nREPL to evaluate some expressions on connection?
i want to run this (set! *print-namespace-maps* false)
, but since it's a dynamic var, every REPL connection has its own copy...
i tried this in my build.boot
but no effect:
(repl :server true :eval '(set! *print-namespace-maps* false))
@onetom Note that that will not do what you want - see here for discussion: https://groups.google.com/d/topic/cursive/BF0r1qsPm-w/discussion
The TLDR is that Cursive pretty-prints on the client side, and it’s not currently configurable.
When I get a moment I’m going to think about whether that’s just a terrible idea or not.