Clojure环境配置
Leiningen
安装
教程:https://github.com/technomancy/leiningen/blob/stable/doc/TUTORIAL.md
- 下载脚本:https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein
-
放到
$PATH
中,加可执行权限chmod a+x lein
。 -
执行
lein
$HOME/.lein/
运行
lein repl
Debug
Run the Project using Leiningen in debug mode
Add dev profile to your project.clj
with the following jvm options:
:jvm-opts ["-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5010"]
Add an alias to project.clj
to be able to run project in debug mode using
lein debug
as follows:
:aliases { "debug" ["with-profile" "dev" "run"] }
whenever you run lein debug
the standard run configuration will be executed
with the jvm options which will allow you to attach debugger from IntelliJ Idea.