diff --git a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/NativeImageBuildStep.java b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/NativeImageBuildStep.java index 8da849d81a4d72..55c1f243b51d68 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/NativeImageBuildStep.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/NativeImageBuildStep.java @@ -712,6 +712,15 @@ public NativeImageInvokerInfo build() { * See https://github.com/quarkusio/quarkus/issues/30772 for more details. */ nativeImageArgs.add("-H:+TrackNodeSourcePosition"); + /* + * Starting with GraalVM/Mandrel 23.0, native-image strips debug info in a separate file by default. + * Quarkus already does this, so for the time being we disable GraalVM/Mandrel's splitting as in + * contrast to Quarkus it uses absolute paths which makes debugging harder especially for + * in-container builds. + * + * See https://github.com/quarkusio/quarkus/issues/31258 + */ + nativeImageArgs.add("-H:-StripDebugInfo"); } /**