简体   繁体   English

Emacs clojure repl不显示任何错误或异常

[英]Emacs clojure repl does not show any errors or exceptions

I am using emacs for clojure development. 我正在使用emacs进行clojure开发。 I use MX cider-jack-in for repl. 我使用MX cider-jack-in进行复制。

When i ran my jetty server with one handler for file-upload, i saw that file-upload was not working. 当我使用一个文件上传处理程序运行我的jetty服务器时,我看到文件上传无效。 But repl was not showing any pprint logs. 但是repl没有显示任何pprint日志。

I switched to console and did lein repl . 我切换到控制台并做了lein repl After i did the workflow again, i saw the request logs and exception. 在我再次完成工作流后,我看到了请求日志和异常。

I wasted a lot of time in thinking what was going wrong. 我浪费了很多时间思考出了什么问题。

can we enable that logging would be directed to repl ? 我们可以启用将日志记录定向到repl吗?

check the buffer *nrepl-server* to see the full output. 检查缓冲区*nrepl-server*以查看完整输出。 It's not visible by default in the buffer list though it will likely have what you are looking for. 默认情况下,它在缓冲区列表中不可见,但它可能具有您正在寻找的内容。

Ctrl-x b *nrepl-server tab will cycle through the output buffers for your various cider sessions. Ctrl-x b * nrepl-server 选项卡将循环显示各种苹果酒会话的输出缓冲区。

In practice mapping the output to the repl for all threads makes using the REPL really hard because I can't type without being interrupted. 实际上,将输出映射到所有线程的repl会使得使用REPL非常困难,因为我无法在不中断的情况下进行打字。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM