Skip to content

Commit

Permalink
Disable debug info stripping in GraalVM/Mandrel >23.0
Browse files Browse the repository at this point in the history
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.

Fixes quarkusio#31258
  • Loading branch information
zakkak committed Feb 20, 2023
1 parent 5849491 commit 019b5ab
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

/**
Expand Down

0 comments on commit 019b5ab

Please sign in to comment.