-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
需要有人介绍下clojure的debug方法 #1
Comments
这个我也有需求,现在基本靠 print。出错的 stack 信息有时候也看得不明不白,因为经常一行代码有很多操作,难以定位到底是哪个出错了。 |
https://github.com/bbatsov/clojure-style-guide (bu neng da zhong wen) |
目前知道 |
|
print还是很高效的,实际开发,print用得很多。 需要断点调试时,可以把一个java跑起来, -Xdebug -Xrunjdwp:transport=dt_socket,address=9092,server=y,suspend=n 注意加上 -Dclojure.compiler.disable-locals-clearing=true 然后idea attach上去。这个方法在print没思路时有用。 |
@shenfeng 我用eclipse试过调试clojure,单步执行都有问题,貌似一条clojure不能跟一条java对应起来,完全不可用。idea没试过,如果也是基于JPDA那种调java的,估计调clj还是不靠谱。 |
@hanyong 是的。eclipse 是有些问题了。IntelliJ IDEA能用: |
试试lighttable,https://github.com/LightTable/LightTable |
@shenfeng 初学者用vim直接写看起来还可以…… |
需要全面了解下clojure的调试方法、远程调试手段、定位bug技巧
The text was updated successfully, but these errors were encountered: