closure for method breakpoint does not have access to Method #2

Closed
jetztgradnet opened this Issue Apr 3, 2012 · 2 comments

Comments

Projects
None yet
2 participants

The handler closure for MethodEntryEvent does not have access to the event itself, so it's diffcult to access to actual com.sun.jdi.Method object, which is required, e.g. to differ between multiple methods of the same name.

The handler closure is called here:
See https://github.com/kohsuke/youdebug/blob/master/src/main/groovy/org/kohsuke/youdebug/VM.groovy#L311

There might be a way to access the Method object using thread.frame(0).location().method(), but that's a bit complicated in order to access the Method. So it would be nice to have a property method in EventDelegate#getProperty(String)

Owner

kohsuke commented Jan 6, 2013

This is now fixed thanks to the pull request #5.

@kohsuke kohsuke closed this Jan 6, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment