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:
How do I debug ClojureScript?
So here is the problem:
- I write my *.cjs files
- I run cljsc/build ...
- I load up my webpage.
- Something bad happens.
- I open up the firefox console.
- I get a line in the generated js, which I find incomprehensible, and I have no idea which line of the original cljs file it came from.
My question:
What is the right way to develop ClojureScript applications?
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 individual piece on its own before chaining it all together.
I'm comfortable with ring + moustache + compojure, [mainly because I can use my standard Clojure debugging techniques] but ClojureScript is another beast.
UPDATE: 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 - http://github.com/clojure/clojurescript/wiki/Source-maps