How to debug a console app from the REPL?
<p>It's really confortable to use emacs+cider for the daily development. All the stuff I've configured in my text editor makes it ideal for the task.</p>

<p>The current project that I'm working on my spare time is a <strong>text editor</strong>. <em>I've already implmented one in C++ and I used <code>gdb</code> to debug</em>, from emacs. To run it, I entered <code>set new-console on</code> and <code>run</code> in the <code>gdb</code> buffer. This would <strong>pop a new console that would handle all the I/O</strong>.</p>

<p>Now I'm trying to reimplement it in Clojure. By far, one of my biggest concerns is debugging. I think it wouldn't be bad something similar to what I used with <code>gdb</code>.</p>

<p>For <strong>reading the keyboard without buffering</strong>, I'm using <code>JLine</code>. This means <code>read-line</code> won't provide the desired result.</p>

<p>What is a <strong>reasonable way to debug this kind of app</strong> (with <strong>lots of I/O from the console</strong>)? </p>

<p><strong>How to do so from emacs/cider</strong> preferently?</p>

<p>I'm using lein, if this matters.</p>

<hr>

<p><em>P.S.</em>: Here's a <a href="https://stackoverflow.com/questions/40961962/new-console-window-when-developing-in-the-repl">similar question</a> I made, with a more broad "intend". I think it's worth seeing.</p>