Fork me on GitHub
#cursive
<
2016-03-09
>
moizsj05:03:06

when using the cursive debugger, values of locals on prior frames of the stack are always null. Is that a known problem?

cfleming07:03:45

@moizsj: They shouldn’t be. How are you starting the debugger?

moizsj07:03:51

@cfleming: once I create my repl launch config, I either 'Run' or 'Debug'

cfleming08:03:25

@moizsj: When you’re seeing this problem, what does *compiler-options* show in your REPL?

moizsj08:03:26

@cfleming: {:disable-locals-clearing true}

cfleming08:03:40

Ok, that’s what you want.

cfleming08:03:09

Which code are you seeing this in? Is it code that has been AOT compiled, like Datomic or something?

cfleming08:03:24

Or has your own code been AOT compiled?

moizsj08:03:49

not AOT compiled. i tried it again right now and its working. so i guess its not always reproducible

moizsj09:03:26

@cfleming: is there some scenario in which that flag would get set to false? (and cause this issue)

cfleming09:03:33

I’m not sure

cfleming09:03:45

Cursive always tries to set it at startup when you’re debugging.

cfleming09:03:00

But there may be a bug of some kind there.

cfleming09:03:07

If you see the problem again could you check that flag?

moizsj09:03:23

@cfleming: sure thing