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

V3 boot run debug option #771

Merged
merged 3 commits into from May 15, 2024
Merged

V3 boot run debug option #771

merged 3 commits into from May 15, 2024

Conversation

iadgovuser29
Copy link
Collaborator

Added a --debug flag to the aca_bootRun.sh and aca_bootRun.ps1 scripts.
Added a variable DEBUG_OPTIONS to our boot run scripts that contains the JVM configuration string necessary to open a debug port in the JVM.
Configured HIRS_AttestationCAPortal/build.gradle to pass a debug string to bootRun if the script is started with the --debug command line option.
Debug mode also works if the bootRun script is started using the spring boot war (executable jar) arguments.

These commands should work the same on either package/linux/aca_bootRun.sh or package/windows/aca_bootRun.ps1.

Script (.sh or .ps1)
aca_bootRun.sh Launches the ACA using spring boot
aca_bootRun.sh -d Launches the ACA using spring boot and opens a debug port in the JVM specified in DEBUG_OPTIONS
aca_bootRun.sh -w Launches the ACA from the war
aca_bootRun.sh -d -w Launches the ACA from the war and opens a debug port in the JVM specified in DEBUG_OPTIONS

@iadgovuser29 iadgovuser29 added enhancement New feature or request server labels May 7, 2024
@iadgovuser29 iadgovuser29 self-assigned this May 7, 2024
@iadgovuser26 iadgovuser26 merged commit 53e0361 into main May 15, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants