Skip to content
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

Open
pfmiles opened this issue Apr 26, 2013 · 10 comments
Open

需要有人介绍下clojure的debug方法 #1

pfmiles opened this issue Apr 26, 2013 · 10 comments
Labels

Comments

@pfmiles
Copy link
Member

pfmiles commented Apr 26, 2013

需要全面了解下clojure的调试方法、远程调试手段、定位bug技巧

@khotyn
Copy link
Member

khotyn commented Apr 26, 2013

这个我也有需求,现在基本靠 print。出错的 stack 信息有时候也看得不明不白,因为经常一行代码有很多操作,难以定位到底是哪个出错了。

@weejulius
Copy link
Member

https://github.com/bbatsov/clojure-style-guide (bu neng da zhong wen)

@lsgrep
Copy link

lsgrep commented Apr 27, 2013

目前知道
1.inetllij idea
2.eclipse
3.emacs+nrepl
三套环境,熟悉的人都讲一下最好了

@qiuxiafei
Copy link
Member

  • 常见错误的含义

@shenfeng
Copy link

print还是很高效的,实际开发,print用得很多。 需要断点调试时,可以把一个java跑起来,

-Xdebug -Xrunjdwp:transport=dt_socket,address=9092,server=y,suspend=n

注意加上

-Dclojure.compiler.disable-locals-clearing=true

然后idea attach上去。这个方法在print没思路时有用。

@hanyong
Copy link
Member

hanyong commented May 30, 2013

@shenfeng 我用eclipse试过调试clojure,单步执行都有问题,貌似一条clojure不能跟一条java对应起来,完全不可用。idea没试过,如果也是基于JPDA那种调java的,估计调clj还是不靠谱。

@shenfeng
Copy link

@hanyong 是的。eclipse 是有些问题了。IntelliJ IDEA能用:

t

@qiuxiafei
Copy link
Member

@tlightsky
Copy link

试试lighttable,https://github.com/LightTable/LightTable

@darionyaphet
Copy link

@shenfeng 初学者用vim直接写看起来还可以……

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

9 participants