Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debug symbols are dropped if user specify -g flag for native-image #276

Open
vvlevchenko opened this issue Jul 14, 2023 · 0 comments · May be fixed by #277
Open

debug symbols are dropped if user specify -g flag for native-image #276

vvlevchenko opened this issue Jul 14, 2023 · 0 comments · May be fixed by #277
Labels
type:enhancement A general enhancement

Comments

@vvlevchenko
Copy link

vvlevchenko commented Jul 14, 2023

Expected Behaviour

in case of -g native-image (since 22.3) produces two images: binary and binary.debug, containing debug info. some debug tools expects lack one to resolve symbols.

Current Behaviour

Only one binary copied to layer

Possible Solution

publish all binaries produced by native-image

Steps to Reproduce

  1. generate simple Spring boot application in IDEA (maven)
  2. add configuration to spring-boot-maven-plugin plugin:
<configuration>
                    <image>
                        <env>
                            <BP_NATIVE_IMAGE_BUILD_ARGUMENTS>
                                --no-fallback
                                --verbose
                                -g
                                -O0
                                -H:-Inline
                            </BP_NATIVE_IMAGE_BUILD_ARGUMENTS>
                        </env>
                    </image>
                </configuration>

In result image contains only one binary com.example.demo.DemoApplication

Motivations

We're developing plugin for GraalVM to let users debug their binary applications, and lack of debug info break opportunity for Spring users to debug theirs applications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement A general enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants