Stopping infinite loops while running clojure tests in emacs with leiningen and swank/slime

前端 未结 3 708
囚心锁ツ
囚心锁ツ 2021-02-08 00:29

In certain kinds of code it\'s relatively easy to cause an infinite loop without blowing the stack. When testing code of this nature using clojure-test, is there a way to abort

3条回答
  •  灰色年华
    2021-02-08 01:09

    As per this old discussion, adding (use 'clojure.contrib.repl-utils)) and (add-break-thread!) to user.clj should enable you to press C-c C-c for passing SIGINT to the long running evaluation/processe.

提交回复
热议问题