From 2f34a090fa39b5de8e5487d3b86f4f86cbae0bbf Mon Sep 17 00:00:00 2001 From: Foivos Zakkak Date: Mon, 8 May 2023 17:27:13 +0300 Subject: [PATCH] Enable DebugCodeInfoUseSourceMappings with GraalVM >= 23.0 Starting with GraalVM 23.0 debug info generation defaults to not using `SourceMapping`s when building the `CompilationResultTree`. This choice was made in order to improve build times (only when generating debug info), but as expected it comes at the cost of less accurate generated-code to source mapping. --- .../io/quarkus/deployment/pkg/steps/NativeImageBuildStep.java | 2 ++ 1 file changed, 2 insertions(+) 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 0f84c2abd2dbd..6f0cc4ea38cfd 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 @@ -754,6 +754,8 @@ public NativeImageInvokerInfo build() { * See https://github.com/quarkusio/quarkus/issues/30772 for more details. */ nativeImageArgs.add("-H:+TrackNodeSourcePosition"); + /* See https://github.com/Karm/mandrel-integration-tests/issues/154 for more details. */ + nativeImageArgs.add("-H:+DebugCodeInfoUseSourceMappings"); } /**