Fork me on GitHub
#dirac
<
2016-05-02
>
mikethompson00:05:49

Docs Suggestion: as well as pointing out the Page-up / Page-down thing. I'd also mention that locals can only be accessed (in the console) by prepending js/ to their name.

mikethompson00:05:22

In some ways it is should have been obvious (there were console warnings when i didn't do it), but the process of learning something new is always a bit of a blur, and I didn't twig to it easily.

mikethompson00:05:57

On the other hand, perhaps it is already documented and I just missed it.

frank01:05:02

so if we set a breakpoint inside a let binding or fn call, we can access the locals with js/?

frank01:05:40

wow I didn't know that, neat!

darwin10:05:32

thanks for trying, Dirac is in early stage of development and docs are incomplete, help wanted, especially from someone using boot to add boot-specific bits

darwin10:05:34

also Scope panel shows rewritten locals names with indices (to ease it for eyes), but when you want to enter them in REPL, you have to hover them with cursor to find the real name and then use js/real-name instead

darwin10:05:07

I will probably implement some kind of auto-completion in the future, but for now it is the way it is

darwin10:05:39

also don’t know how to convince cljs compiler to treat locals as normal cljs symbol names, those names are not defined in current namespace so they don’t get analyzed as clojurescript things, they must be prefixed with js/ as coming from js land

mikethompson10:05:41

I seem to remember that when you compile you can supply an environment and in that environment you can supply a list of locals?

mikethompson10:05:35

Of course you'd have to query the current stack frame to obtain that list of locals