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

Add debugging support to Eclipse #171

Closed
florianf opened this issue Jun 24, 2017 · 9 comments
Closed

Add debugging support to Eclipse #171

florianf opened this issue Jun 24, 2017 · 9 comments

Comments

@florianf
Copy link
Collaborator

florianf commented Jun 24, 2017

Thanks to @dkimitsa we have first class debugging support for IDEA. The Eclipse debugger implementation is very unstable and incomplete ATM. The following issues are present:

  • Connecting to the debugger only seems to work when launching Eclipse in debugging and setting a breakpoint somewhere when the debugger is instanciated.
  • Connecting to the debugger seems to work only once, afterwards Eclipse needs to be restarted.
  • Sourcelookup doesn't work at all

Any help appriciated, for the setup of the debugger in eclipse take a look at org.robovm.eclipse.internal.AbstractLaunchConfigurationDelegate

@dkimitsa
Copy link
Contributor

hey, have introduced myself to eclipse today.
About 1 -- have not faced yet
About 2 -- confirm and also there is Eclipse JDI rejects hit breakpoint (e.g. breakpoint hit and eclipse resumes VM), don't know why -- need to dig Eclipse JDI sources
About 3 -- I was playing with build-in small project and it was ok, can you please confirm that it either doesn't work at all or doesn't work with external dependencies etc

@florianf
Copy link
Collaborator Author

Hey @dkimitsa, great to hear!

  1. You're right, i confused it with issue 2)
  2. Updated to latest neon and reset my workspace and the problem is gone for now. Will test on libgdx project later.

@florianf
Copy link
Collaborator Author

Have to revert regarding 2) source lookup. It works for a simple new iOS Project (from RoboVM template) but not for a simple libgdx project created with the setup ui http://libgdx.badlogicgames.com/download.html

@dkimitsa
Copy link
Contributor

dkimitsa commented Jul 1, 2017

@florianf
fixed 1, 2 issues, please try #174

had no time to create complex project with libgdx to test source lookup, is it possible you to send me ready to test one ?

@florianf
Copy link
Collaborator Author

florianf commented Jul 2, 2017

Allright, I'll give it a Spin, thx!

@florianf
Copy link
Collaborator Author

florianf commented Jul 3, 2017

Simple project with a core and a ios project, generated with libgdx setup tool:
project.zip

You'll need to adapt the .classpath file to point to your local maven cache. This are the imported projects, for simple reproducing and working gradle tasks, do the following:

  • Create new project with libgdx setup tools
  • Change to the directory, run gradle eclipse
  • Import existings projects to eclipse - done

@florianf
Copy link
Collaborator Author

florianf commented Jul 3, 2017

Regarding #174 , re-launching of the debugger works now flawlessly, great!

@Tom-Ski Tom-Ski mentioned this issue Jul 25, 2017
2 tasks
@dkimitsa
Copy link
Contributor

@florianf fixed in #223

@florianf
Copy link
Collaborator Author

Thx!

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