title: How to Debug ClojureScript
body: <p>I apologize for this seemingly stupid question, but I've been playing with ClojureScript on and off for a few weeks now, and I can't figure out this one simple question:</p>
  
  <p><strong>How do I debug ClojureScript?</strong></p>
  
  <p>So here is the problem:</p>
  
  <ol>
  <li>I write my *.cjs files</li>
  <li>I run cljsc/build ...</li>
  <li>I load up my webpage.</li>
  <li>Something bad happens.</li>
  <li>I open up the firefox console.</li>
  <li>I get a line in the <em>generated</em> js, which I find incomprehensible, and I have no idea which line of the original cljs file it came from.</li>
  </ol>
  
  <p><strong>My question:</strong></p>
  
  <p>What is the right way to develop ClojureScript applications?</p>
  
  <p>PS I've looked at ClojureScriptOne -- what I don't like about it is that it strings together a bunch of technology all at once; and I'd prefer to understand how to use each <em>individual</em> piece on its own before chaining it all together.</p>
  
  <p>I'm comfortable with ring + moustache + compojure, [mainly because I can use my standard Clojure debugging techniques] but ClojureScript is another beast.</p>
  
  <p><strong>UPDATE</strong>: Things have changed quite a bit since this question was first asked. The proper way to debug ClojureScript applications these days is to enable source maps - <a href="http://github.com/clojure/clojurescript/wiki/Source-maps">http://github.com/clojure/clojurescript/wiki/Source-maps</a></p>