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

[GR-53747] Enable debug mode for native-image and native-image-configure #8859

Closed
wants to merge 3 commits into from

Conversation

lgxbslgx
Copy link
Contributor

Hi all,

When I use the command mx -d -v native-image HelloWorld to try to debug the compiler driver, the process doesn't stop and doesn't listen at port 8000. After diving into the code, I find that the command native-image of the mx can't identify and process the JDK arguments. And I find the native-image-configure also has the same problem. This patch fixes them.

Thanks for taking the time to review. This is my first time contributing to GraalVM, maybe I need some guidance. Thanks again.

Best Regards,
-- Guoxiong

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Apr 29, 2024
@fniephaus
Copy link
Member

Note: this allows users to debug the native-image-configure and native-image launchers. The latter is actually the driver process, not the actual builder process. For debugging the builder process (the one performing the static analysis and compilation), you can use --debug-attach.

@fniephaus fniephaus changed the title Enable debug mode for native-image and native-image-configure [GR-53747] Enable debug mode for native-image and native-image-configure Apr 30, 2024
@fniephaus
Copy link
Member

Thanks for contributing! Merged via #8861.

@fniephaus fniephaus closed this May 3, 2024
@fniephaus fniephaus self-assigned this May 3, 2024
@lgxbslgx lgxbslgx deleted the ENABLE_DEBUG branch May 3, 2024 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants