Skip to content

Commit

Permalink
Merge pull request #20451 from zakkak/fix-debug-build-process
Browse files Browse the repository at this point in the history
Fix quarkus.native.debug-build-process
  • Loading branch information
geoand authored Oct 7, 2021
2 parents 3271bbd + 56fb882 commit 99a4d06
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -606,8 +606,15 @@ public NativeImageInvokerInfo build() {
nativeImageArgs.add("-H:DebugInfoSourceSearchPath=" + APP_SOURCES);
}
if (nativeConfig.debugBuildProcess) {
String debugBuildProcessHost;
if (isContainerBuild) {
debugBuildProcessHost = "0.0.0.0";
} else {
debugBuildProcessHost = "localhost";
}
nativeImageArgs
.add("-J-Xrunjdwp:transport=dt_socket,address=" + DEBUG_BUILD_PROCESS_PORT + ",server=y,suspend=y");
.add("-J-Xrunjdwp:transport=dt_socket,address=" + debugBuildProcessHost + ":"
+ DEBUG_BUILD_PROCESS_PORT + ",server=y,suspend=y");
}
if (nativeConfig.enableReports) {
nativeImageArgs.add("-H:+PrintAnalysisCallTree");
Expand Down

0 comments on commit 99a4d06

Please sign in to comment.