简体   繁体   中英

Counterclockwise doesn't use stepping debugger in eclipse?

The Counterclockwise doco contains he following statement:

use the out-of-the-box Eclipse debugger possibilities to launch your launch configurations (Debug instead of Run

What you can currently do is being able to place breakpoints in clojure code edited either via the standard text editor

Which to me suggests usage of the eclipse stepping debugger. So I set up the following Clojure code:

   (ns ccwdebugtest)

   (def a 1)

X) (def b 2)

X) (def c 3)

X) (def d 4)

With debug points set at each of the points marked X) - I then chose to run the code via "Debug As > Clojure Application".

What I expected to get was a prompt to launch the debug mode of eclipse - instead a new REPL started up down the bottom.

When I typed in (println d) I get the result 4 .

This tells me that my breakpoints failed to break at that point.

Are my expectations not valid? Am I doing something wrong?

(I'm running Eclipse Juno, with Java 1.7 on OS X 10.8.2 with CCW version 0.10.2.STABLE001)

Not every Clojure line is compiled (by the Clojure compiler, nothing related to CCW / Eclipse here) with line information for debugging.

Try something like creating a function, and adding a breakpoint for a line containing an expression, eg (+ 2 3).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM