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
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