Clojurians
#cljs-dev
<
2016-10-22
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

viebel17:10:35

Is there a way to follow the code with the browser debugger for code loaded at run-time by cljs.js/eval?

darwin17:10:32

@viebel what do you mean by “follow”? you are unable to set a breakpoint in cljs.js/eval?

viebel17:10:09

I mean: set a breakpoint in the code that is loaded by cljs.js/eval

viebel17:10:22

In chrome, the files loaded don’t appear in the source tab!

darwin17:10:47

what about something like (do (cljs.core/js-debugger) ~form)`

darwin17:10:07

and pass it into eval, instead of form

viebel17:10:19

let me try

darwin17:10:01

you should see a random-named js file in chrome devtools, containing the debugger statement and the rest of your code following

darwin17:10:31

it should have yellow-ish background to distinguish it from ordinary sources

viebel17:10:20

It works. Thanks!