Fork me on GitHub
#cursive
<
2016-09-21
>
tap01:09:45

Thanks @cfleming. I missed this input box because I was looking for a check box 😅

bradrhod17:09:04

@cfleming : sorry for the delay.

bradrhod17:09:05

We have hit the breakpoint at line 437. and this is the UI from intellij that you requested.

bradrhod17:09:49

ugh, wait that was an old screenshot

bradrhod17:09:52

just a second.

bradrhod17:09:57

I reran, have suspend=y in the jdwp command, so the app breaks waiting for a debugger to attach.

bradrhod17:09:24

I think maybe the issue is that i have the app built locally with Java 8, but I am remote debugging an app that is running on java7

bradrhod17:09:52

I will get my dev environment to run java 7 and rebuild and try that.

bradrhod17:09:00

Let me know if you have any ideas.

cfleming18:09:39

@bradrhod The problem is that your breakpoint is still stopping in the class initialiser. This is because Clojure executes code very differently to Java.

cfleming18:09:39

When a namespace is loaded, the class initialiser will load all the function classes and attach their metadata etc

cfleming18:09:15

What you’re seeing is that during that initialisation, the code being executed is the code that actually creates your function and assigns it to a var.

cfleming18:09:04

If you put your breakpoint on the following line (438), it will break when the function is actually called.

bradrhod18:09:34

thanks, that sound like how javascript create class initialization. I will move the breakpoint and see if that is better.