Groovy breakpoints?

Hello.

I am use the latest 7323 IDEA and the latest groovy plugin. I just can not seem to get break points to work in the debugger. Even the simplest one line script with a break point at println "Hello World"; does not stop at the BP.

Config:
Idea 7232
JetGroovy 0.1.11220
Windows XP Pro
JDKs 1.5.0_12 or JDK 1.6.0_01

It's not stopping (pun) me from doing anything, but I wonder what I am doing wrong?

4 comments
Comment actions Permalink

What version of groovy you use? Last time I saw the problem it was because the compiler failed to generate debug info.

0
Comment actions Permalink

It was both 1.0 and 1.1

But I found out that it worked if the code in placed into a class. It can not be just a top level script. It has to be in a class with a main().

Guess that is the intent.

0
Comment actions Permalink

No, the scripts are actually debuggable as well. We had a problem with debugging in previous plugin version, so you may want to update to the last version and see if the problem goes away. If it does not then groovy 1.1 beta 2 also had a problem with debugging, please update to beta 3. If even this does not help, then I would need to investigate it further...

0
Comment actions Permalink

I was using IDEA 7362 (latest 7.0) and the JetGroovy plugin. I was able to get breakpoints to work in the original script. However, if I had breakpoints in a class that was used by the script the debugger would stop with a JNI error.

I have updated to IDEA 7364 (7.0.1) and now the breakpoint within the called class does not work (well, it didn't work before). The debugger does not stop, it just doesn't execute the code.

JetGroovy: 0.1.11732
Groovy 1.0
jdk: 1.6.0_02

Message was edited by:
Michael Franz

0

Please sign in to leave a comment.