Search code examples
eclipsedebugginggroovyggts

Eclipse GGTS Debugger will not stop on breakpoints for Groovy code


I am trying to debug a groovy project using debug as Groovy Script, but Eclipse is not stopping on the line. I have set a breakpoint on line 2, restarted Eclipse, cleaned and "Skip all Breakpoints" is not checked. This is the code, and it does execute. Any help would be appreciated.

def sum = 3 + 5
println "the sum is " + sum

Environment

  • Windows 8.1
  • JDK 8u31
  • Eclipse Luna SR1 (4.4.1)
  • GGTS 3.6.3.SR1

Solution

  • The script ran just fine, but it seems the debugger couldn't find it because it was missing the package directive in the script, as the file was nested under a package name.

    package MyNamespace
    def sum = 3 + 5
    println "the sum is " + sum