How to Debug ClojureScript

后端 未结 5 1454
花落未央
花落未央 2021-01-31 17:31

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:

5条回答
  •  感动是毒
    2021-01-31 17:57

    If you want to use Chrome Debugger, you can use the following...

    (defn debugger []
      (js/eval "debugger"))
    
    (debugger)
    

    this is very much a hack, but it will active chrome's debug mode.

    Remember though, Clojure Script uses namespaces, which means if you created some variable thing, then it will be found in my.namespace.thing in chrome console (as expected).

提交回复
热议问题