Is there any way to create breakpoints in clojurescript? Either in the repl or in chromes native debugger.
I've tried (js* "debugger") and this returns
SyntaxError: Unexpected token debugger
Thanks!
(js* "debugger;")
should work. You're just missing the semicolon.
In case someone see this later,
If you are inside a go
block you might need to use this: (js* "0; debugger")
because go macros creates variables definitions everywhere, so that fix on that scenario.
If for some other reason it doesn't, check the error log, you must like can find a way to "hack" the invalid compilation by adding something.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With