-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Step over continues to next breakpoint #312
Comments
I've been poking away at this since I have experienced similar behavior. Best I can tell, Eclipse is communicating with the runtime process (the thing being debugged) and some requests for "this" in a given scope are failing. These failures break down the checks for breakpoints and stepping. Here is my recreation scenario: @groovy.transform.CompileStatic
class C {
String string
C(String s = null) { string = s }
static void main(args) {
def c = new C('') // put breakpoint on this line, run as Java app, and step
println c
}
} JDWP will get into If I replace |
Any constructor that lacks an explicit call to its super class constructor relied on code generation that affected the start and length of local variables. This caused JDI/JDWP errors when debugger requested "this" for a stack frame.
I patched the issue that I discovered and filed a bug with Groovy core to do so as well. You will need to recompile all your sources with this fix to get improved debugging. I'm not sure if that will be enough to fix your issue, but it did help debugging and variables display for me. |
Can you link to the groovy core bug for completeness?
…On Aug 23, 2017 16:48, "Eric Milles" ***@***.***> wrote:
I patched the issue that I discovered and filed a bug with Groovy core to
do so as well. You will need to recompile all your sources with this fix to
get improved debugging. I'm not sure if that will be enough to fix your
issue, but it did help debugging and variables display for me.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#312 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAK9zzOm0NtcrStXJFh1915d0HhOcEghks5sbDvCgaJpZM4N5wq6>
.
|
I have GroovyEclipse installed and I am debugging a JUnit4 Plugin Test which launches a script through a GroovyShell. I have a breakpoint where execution stops. When I press "Step Over", i expect execution to halt at the next line, but that doesn't happen. Instead, execution just continues. Is this groovy-eclipse/jdt patch related maybe?
The text was updated successfully, but these errors were encountered: