Open
Conversation
Also updated dependencies to Groovy 4.0.x and recent args4j
- removed '_()' shortcut for 'ref()' as '_' is now a Java keyword - added some additional error handling to load classes which haven't are not available yet - fixed some issues with newer Groovy version - removed code to search for tools.jar, as this is no longer available with JDK9+. Instead use this java command line argument to get access to the module for debugging: --add-opens=jdk.jdi/com.sun.tools.jdi=ALL-UNNAMED
To run YouDebug using docker without further dependencies, build the Docker image: docker build -t youdebug . Now mount your debug script into the container and run YouDebug: docker run --name "ydb" youdebug -v ./myscript.ydb:/opt/youdebug/scripts/myscript.ydb /myscript.ydb
The Maven build does not currently fully work with the updated GMavenPlus plugin and Groovy 4. As an alternative, this Gradle build allows building YouDebug: ./gradlew build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes #10 and provides an update to work with modern Java versions (JDK11+) and Groovy 4.
I am happy to discuss and revisit any changes. Specifically the addition of the Gradle build because I couldn't get the all issues with the Maven/GMavenPlus build resolved.
Please let me know if you are willing to consider an update. I will also updates the docs, as there are some obsolete links, etc.
The individual commits:
Added Maven wrapper
Using GMavenPlus instead of obsolete GMaven plugin
Also updated dependencies to Groovy 4.0.x and recent args4j
Update YouDebug to run with JDK 9+ and Groovy 4
not available yet
with JDK9+. Instead use this java command line argument to get access to
the module for debugging:
--add-opens=jdk.jdi/com.sun.tools.jdi=ALL-UNNAMED
Added Dockerfile and start script
To run YouDebug using docker without further dependencies, build the
Docker image:
docker build -t youdebug .
Now mount your debug script into the container and run YouDebug:
docker run --name "ydb" youdebug -v
./myscript.ydb:/opt/youdebug/scripts/myscript.ydb /myscript.ydb
Added Gradle build
The Maven build does not currently fully work with the updated
GMavenPlus plugin and Groovy 4.
As an alternative, this Gradle build allows building YouDebug:
./gradlew build