Skip to content
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

Cannot add breakpoints in groovy class from jar file #544

Closed
moley opened this issue Mar 27, 2018 · 4 comments
Closed

Cannot add breakpoints in groovy class from jar file #544

moley opened this issue Mar 27, 2018 · 4 comments
Assignees
Milestone

Comments

@moley
Copy link

moley commented Mar 27, 2018

Hi,

I have different gradle plugin projects, which are dependend from each other. They are built with gradle and published via gradle maven-publish plugin. If I open the groovy file from jar in my project and want to add a breakpoint to a valid line, this does not work. With IntelliJ it is working for my scenario, so I think it is an eclipse bug and not a bug in maven-publish plugin.
I have uploaded a small github project to extract this behaviour.
To reproduce do the following:

  • Download project from https://github.com/moley/eclipseGroovyDebug
  • step into subproject groovylib and call ./gradlew publishToMavenLocal
  • a version of the groovylib should be available in ~/.m2/repository/groovylib
  • open subproject groovyapp by "File->Import...->Existing Gradle Project" or call ./gradlew eclipse on this project and open via "File->Import...->Existing projects into workspace"
  • Open the dialog "Open Type" and search for "SomeLibClass"
  • Try to add breakpoint -> nothing happens

Does not work for version 3.0.0.xx-201803261849-e47 of Eclipse Groovy Development Tools in Oxygen and does not work with Photon either

@eric-milles
Copy link
Member

Thanks for submitting this issue. The recreation steps are very helpful. Greclipse does not register the proper editor extension for the Class File Editor to allow toggling of breakpoints from there. I'll have a look at what is required. In the meantime, you should at least be able to set method enter/exit breakpoints.

@moley
Copy link
Author

moley commented Mar 27, 2018

You're welcome, thank you for the hint with the enter/exit breakpoints.
If you have further questions, simply call
Cheers
Markus

eric-milles added a commit that referenced this issue Apr 12, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@eric-milles
Copy link
Member

Double-clicking in the left vertical ruler of a class file should work now. The ruler's context menu items (Disable Breakpoint and Toggle Breakpoint) are not yet hooked up.

@eric-milles eric-milles self-assigned this Apr 12, 2018
@eric-milles eric-milles added this to the v3.0.0 milestone Apr 14, 2018
@moley
Copy link
Author

moley commented Apr 16, 2018

thank you for your fast fix, I will try it when released

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

No branches or pull requests

2 participants