Coming from Visual Studio all those years ago, I deeply missed my debugger.

These days, I miss my debugger extremely rarely. And when I do use a 
debugger, I much prefer a non-visual one: Either something like dgb, or 
something like a hypothetical open-repl-here function, where I can ask 
specific questions and get specific answers... logged to my terminal! I 
find that trace points (aka print statements) are more useful than break 
points because I can look at cross sections of execution (read: logs) 
rather than specific instruction pointer locations. And when you get a log 
in your terminal, you spend less time re-asking and re-evaluating by 
hovering your mouse around, which is quick to confuse you. Logs are 
particularly useful with pretty printed Clojure data, since you know the 
values have remained immutable since you have printed them!

Most of the time, stepping through code is just much slower than thinking, 
inserting a precise print statement, and then re-executing the broken code.

However, this means that you need to design your code for determinism, 
repeatability, and visibility. So not having a debugger means also 
has pleasant affects on your design!

On Monday, May 27, 2013 2:34:23 PM UTC-4, Oskar Kvist wrote:
>
> Stuart Halloway said in his video Clojure in the Field (
> http://www.infoq.com/presentations/Clojure-tips) from March 1, 2013 (I 
> think): "I don't feel the absence of a debugger because I've learnt enough 
> that I don't ever need a debugger." I am very intrigued by that statement. 
> What does he (or you, if you are reading, Stuart) mean? For me, debugging 
> is the biggest thing that I don't know how to do well currently in Clojure 
> (I use Vim, and have not programmed in Clojure for a while), so I am really 
> interested in what he meant.
>
> And by the way: As I said, I have not been using Clojure for a few months, 
> but: What's the state of the art of debugging for Vim users? I've been 
> meaning to try out vim-fireplace and ritz and see if they work together 
> well, but have not gotten around to it yet. I would very much appreciate a 
> nudge in the right direction.
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to