Regression: Expressions broken for Remote Java Application in recent Eclipse versions #1958
Unanswered
CalculonPrime
asked this question in
Q&A
Replies: 2 comments 1 reply
-
First of all you should provide a self contained example and step by step instructions how to reproduce you problem. With that one would have at least some understanding what is broken and where (Eclipse, your framework or something else). |
Beta Was this translation helpful? Give feedback.
1 reply
-
Were you able to reproduce the problem? Should I file a Github Issue (as this is a discussion thread)? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have a command-line build process for our framework, not using Eclipse that generates several JARs that get deployed via Embedded Tomcat. In earlier Eclipse versions (circa 2017), I was able to create an Eclipse project, remove the "src" directory and replace it with a link to our app's source (outside the Eclipse project), and then attach to the running external Java app using a Remote Java Application launcher in Eclipse.
I also added the output JARs from the build to the project, and all the 3rd party JARs used by the app.
With all of this in place, I could set breakpoints, step line-by-line, and most importantly, evaluate expressions in the expression pane.
However, with the most recent versions of Eclipse (2023-09 and 2023-12 tested), expressions don't work. This is horrific! Having to rebuild with logging or print commands makes things much more difficult. Expressions added show no output, and I believe this is connected to what happens when I press ctrl+shift+I after selecting a variable in the code near the breakpoint, which reports,
The Java project for the new Eclipses was built in the same way, with the src directory in the project linked to the external Java source. All the fixes for this problem on the web say to make sure that you're linking to the same source and libraries in the project, but as mentioned the app wasn't built with an Eclipse project in my case, as it's an external app. So this is not possible as a solution.
Am I stuck using Eclipse from 2017 or switching to IntelliJ? Why would the devs have made such a mind-boggling change that breaks an important feature? Is my take on this correct and if so would filing a bug have a chance of getting this fixed?
Beta Was this translation helpful? Give feedback.
All reactions