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 Use Step Filters while Debugging in Eclipse #309

Closed
LordTylus opened this Issue Jun 20, 2018 · 5 comments

Comments

Projects
None yet
2 participants
@LordTylus

LordTylus commented Jun 20, 2018

Hello,

today I tried some debugging for the first time with RoboVM 2.3.3 and came across an issue with Break-Points and Step-Filters.

Issue details

It compiles fine, launches and hits my Break-Points as intended.

But when Using-Step-Filters like:

  • Step into (F5)
  • Step over (F6)
  • Step return (F7)

I just get an Error In Eclipse:
com.sun.jdi.ClassNotPreparedException occured creating step request.

After that the app is more or less stuck. Even hitting F8 wont work anymore for me. Only thing I can do then is either relaunch the app, or suspend all threads manually and resume the whole application.

Also I have issues with the Debugger randomly disconnecting. After hitting a breakpoint. Not sure why, but it hits the Breakpoint, I can see variable content for like a second and then the debugger just disconnects from the device without any error. The App on the device stays in a suspended state with no way to resume them. So I have to kill and relaunch the app.

Reproduction steps/code

  1. Run App in Debug-Mode
  2. Set Breakpoint at llocation of your choice
  3. Press F6 to Step over
  4. Get error Message.

Configuration

Build Tools:

  • IDEA plugin
  • [*] Eclipse plugin
  • Gradle plugin

Versions:

Please provide the version of RoboVM, XCode and JDK used

  • Eclipse: Eclipse Oxygen Release (4.7.0)
  • Robovm: 2.3.3
  • XCode: 9.3.1
  • JDK: 1.8.0 Update 144

Build Targets:

  • IPad Air 1 (IOS 10.3.1)
@dkimitsa

This comment has been minimized.

Contributor

dkimitsa commented Jun 20, 2018

hi, 2.3.3 is pretty old, can you please try 2.3.4 snapshot ?

@dkimitsa

This comment has been minimized.

Contributor

dkimitsa commented Jun 20, 2018

also Eclipse is on low priority but if you share simple code snippet and explain the case I will be able to look into

@LordTylus

This comment has been minimized.

LordTylus commented Jun 21, 2018

Greetings,

thank you for your fast reply. I tried again with the 2.3.4 snapshot today and even tried it in IOS-IPad Simulator.

Sadly with 2.3.4 the issue is still present using Eclipse. It hits the breakpoints, but I cannot use any kind of step filters. Only resume can be used.

Also I tested it with a new RoboVM Projekt.

  • Created new RoboVM project, called it "Test"
  • Left everything on default.
  • It created a MobileViewController (that contains one Button)
  • Set the breakpoint in the constructor of given controller (line 29)
  • Compiled and run as debug
  • hit f6 (step over) once the breakpoint was reached.
  • Got same error message.

To run it in Simulator I set the Compilation Settings to use 64 bit, since 32 bit is no longer supported since IOS 11.

By the way 64 bit should be the default setting for new projects.

dkimitsa added a commit to dkimitsa/robovm that referenced this issue Jul 3, 2018

fixed MobiVM#309 Cannot Use Step Filters while Debugging in Eclipse
* EXCEPTION_ONLY validation fixed (root case)
* JDWP version downgraded to 1.5 as Eclipse uses features that are not supported
* robovm.version set to 2.3.5-SNAPSHOT
@dkimitsa

This comment has been minimized.

Contributor

dkimitsa commented Jul 3, 2018

@LordTylus fixed in #315

@LordTylus

This comment has been minimized.

LordTylus commented Jul 6, 2018

@dkimitsa: Thank you for the fix.

I guell Ill have to wait till its available in the latest snapshot to test it right?

Will close the Issue for now. And in case I still have problems once its merged ill reopen it.

@LordTylus LordTylus closed this Jul 6, 2018

florianf added a commit that referenced this issue Jul 7, 2018

Fix #309 and JDWP version downgrade to 1.5 (#315)
* fixed #309 Cannot Use Step Filters while Debugging in Eclipse
* EXCEPTION_ONLY validation fixed (root case)
* JDWP version downgraded to 1.5 as Eclipse uses features that are not supported
* robovm.version set to 2.3.5-SNAPSHOT

* fixed spelling as per #311 (review)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment