You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When debugging a project where I have put copies of Java files from a dependency in my project's src folder (but in another module) to adjust its behavior, and placing break points in these overwritten Java files, the debugger always opens the *.class file of the dependency, which does not contain my changes.
Relation.class is opened which obviously does not show the changes I made in Relation.java. The execution marker (yellow highligted line) is - however - at the line number of the original breakpoint in other/src/main/java/tech/tablesaw/table/Relation.java:261, even if that line in Relation.class only contains } or is even empty.
Expected Result
other/src/main/java/tech/tablesaw/table/Relation.java is opened with my changes.
Additional Informations
So far I found out, that this issue only occurs, when the overridden Java file is not located in the same maven module, where the main class which is debugged resides. As a workaround, moving the overridden Relation.java file to the run module is enough to make it work as expected.
Thanks for your work at this extension.
The text was updated successfully, but these errors were encountered:
When debugging a project where I have put copies of Java files from a dependency in my project's src folder (but in another module) to adjust its behavior, and placing break points in these overwritten Java files, the debugger always opens the
*.class
file of the dependency, which does not contain my changes.Example project which works: https://github.com/marecabo/java-debug-demo/tree/works
Example project where this issue occurs: https://github.com/marecabo/java-debug-demo/tree/does-not-work
Environment
RHEL 8.9
openjdk 21.0.2 2024-01-16 LTS
1.88.1
v1.29.0
v0.57.0
Steps To Reproduce
git clone -b does-not-work https://github.com/marecabo/java-debug-demo.git
other/src/main/java/tech/tablesaw/table/Relation.java:261
.This file overrides a file from a dependency and changes its behavior, see marecabo/java-debug-demo@40bb99b
run/src/main/java/com/project/my/run/Main.java
Current Result
language-support-for-java.log
Relation.class
is opened which obviously does not show the changes I made inRelation.java
. The execution marker (yellow highligted line) is - however - at the line number of the original breakpoint inother/src/main/java/tech/tablesaw/table/Relation.java:261
, even if that line inRelation.class
only contains}
or is even empty.Expected Result
other/src/main/java/tech/tablesaw/table/Relation.java
is opened with my changes.Additional Informations
So far I found out, that this issue only occurs, when the overridden Java file is not located in the same maven module, where the main class which is debugged resides. As a workaround, moving the overridden
Relation.java
file to therun
module is enough to make it work as expected.Thanks for your work at this extension.
The text was updated successfully, but these errors were encountered: