nsacyber / HIRS

Trusted Computing based services supporting TPM provisioning and supply chain validation concepts. #nsacyber
Other
180 stars 57 forks source link

V3 boot run debug option #771

Closed iadgovuser29 closed 5 months ago

iadgovuser29 commented 6 months ago

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