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

Allow compiling with debug info #43

Closed
pablochacin opened this issue Apr 28, 2022 · 0 comments · Fixed by #51
Closed

Allow compiling with debug info #43

pablochacin opened this issue Apr 28, 2022 · 0 comments · Fixed by #51

Comments

@pablochacin
Copy link
Collaborator

pablochacin commented Apr 28, 2022

xk6 builder has hardcoded the options for removing debug info:

"-ldflags", "-w -s", // trim debug symbols

This prevent using debugging tools. For example, dlv throws the following error message:

could not launch process: decoding dwarf section info at offset 0x0: too short - debuggee must not be built with 'go run' or -ldflags='-s -w', which strip debug info

It would be convenient to add a flag or environment variable for changing this behavior.

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

Successfully merging a pull request may close this issue.

1 participant