dirac

Dirac v1.7.2 is out: https://github.com/binaryage/dirac/releases/tag/v1.7.2
sandbags 2017-11-19T17:48:13.000006Z

@darwin Chrome Canary 64.0.3273.0, MacOS 10.12.6, Clojure 1.8.0, ClojureScript 1.9.946, dirac "RELEASE". Now I try it again I do notice a warning which is probably pertinent "We detected unexpected tools.nrepl library version in your nREPL server at <nrepl://localhost:8230>! The server reported version 0.2.12, but Dirac expected version 0.2.13"

sandbags 2017-11-19T17:48:26.000041Z

i'm trying to figure out what is pulling in 0.2.12

2017-11-19T17:48:54.000001Z

that should be fine in this case, don't worry about this

2017-11-19T17:49:06.000062Z

there are not protocol differences between 0.2.12 and 0.2.13

sandbags 2017-11-19T17:49:22.000025Z

oh, ok

sandbags 2017-11-19T17:49:45.000117Z

then i saw no other warnings or messages

sandbags 2017-11-19T17:50:01.000100Z

the thing worked in the sense that I could navigate to a .cljc file and set a breakpoint

sandbags 2017-11-19T17:50:05.000050Z

and it stopped at the breakpoint

sandbags 2017-11-19T17:50:23.000079Z

but it didn't show any of the locals in scope at that point and the stepping seemed a bit wonky

2017-11-19T17:50:57.000050Z

did you try the same thing in internal devtools? was it better (minus names demangling)

2017-11-19T17:50:59.000034Z

?

sandbags 2017-11-19T17:51:19.000069Z

i've no idea what you're asking me

sandbags 2017-11-19T17:51:27.000106Z

what do you mean by "the same thing"

sandbags 2017-11-19T17:51:39.000107Z

you mean setting a breakpoint in some JS code?

2017-11-19T17:51:51.000052Z

did you try to set the same breakpoint in normal chrome devtools without using Dirac?

sandbags 2017-11-19T17:51:55.000077Z

no

2017-11-19T17:52:23.000067Z

please try the same workflow, just to check if you would see the locals you are expecting to see there

sandbags 2017-11-19T17:52:37.000081Z

are you talking about CLJS and cljs scope or JS & js scope?

sandbags 2017-11-19T17:53:01.000008Z

What I mean is, I am not sure what should be possible in the built-in devtools

sandbags 2017-11-19T17:53:11.000059Z

i didn't think it could set breakpoints in CLJS code or inspect scopes

2017-11-19T17:53:39.000027Z

you can, but you won't get some things dirac offers on top

sandbags 2017-11-19T17:53:41.000016Z

also i guess that means i have to pull dirac out of my dependencies

2017-11-19T17:53:59.000034Z

for example demangling clojurescript-generated variable names

2017-11-19T17:54:23.000035Z

no, you don't have to pull dirac out, simply instead of dirac devtools open internal chrome devtools on your page

2017-11-19T17:55:02.000019Z

since recent chrome releases they even work side by side, but better to close dirac devtools window and use the intenal (bundled) devtools

sandbags 2017-11-19T17:55:07.000088Z

okay so chrome internal devtools seems to have the local scope variables

2017-11-19T17:55:52.000082Z

ok, then something went wrong with dirac, I would need to see the code or maybe screenshots in the first step

2017-11-19T17:56:52.000031Z

in the beginning I thought you placed the breakpoint to a wrong place where you expected locals but your were stopped "elsewhere" than expected

2017-11-19T17:57:16.000047Z

using (js-debugger) should be precise, but using devtools UI could confuse real location

2017-11-19T17:57:53.000012Z

because your clicks to set breakpoints go through source mapping somewhere into generated javascript code and you might hit some problematic spot

2017-11-19T17:58:42.000095Z

please try to make two screenshots for me a) hitting the breakpoint in dirac devtools b) hitting it in the normal devtools

sandbags 2017-11-19T17:59:29.000009Z

Ok. Can't do it now as I have to switch to some other work. But I'd be interested in having this work so next chance I get I will try and capture the two.

sandbags 2017-11-19T17:59:42.000115Z

Thanks for taking an interest.

2017-11-19T17:59:52.000034Z

ok, np, ping me here anytime