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

Add --disable-optimizations flag to make debugging easier. #24

Merged
merged 3 commits into from
Apr 18, 2019

Conversation

Harwayne
Copy link
Contributor

@Harwayne Harwayne commented Apr 9, 2019

Add --disable-optimizations flag to make debugging easier.


I used this, along with a different base image (ubuntu:bionic-20190307), so that I could interactively debug a ko built and applied container running in my Kubernetes cluster, using squash and VS Code.

@dprotaso
Copy link
Contributor

dprotaso commented Apr 9, 2019

Out of curiosity do you just ssh to the container and use gdb?

@jonjohnsonjr
Copy link
Collaborator

I believe the strategy is to override the ko base image with something containing delve and then use squash to debug. Adam landed some changes to enable debugging from vscode using the squash plugin.

@Harwayne
Copy link
Contributor Author

Harwayne commented Apr 9, 2019

As @jonjohnsonjr mentioned, I am using squash, in particular its VS Code plugin. I tried to document the steps I needed to take to get everything working here, but they were notes meant for me more than anything else. And since then I've merged PRs into squash, so the next release won't require building it myself.

@dprotaso
Copy link
Contributor

dprotaso commented Apr 10, 2019 via email

@@ -0,0 +1,3 @@
# Ignore GoLand (IntelliJ) files.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@matzew
Copy link

matzew commented Apr 10, 2019

I'd like to see this for better debugging options. Thanks @Harwayne

@jonjohnsonjr jonjohnsonjr merged commit b0a1702 into ko-build:master Apr 18, 2019
@Harwayne Harwayne deleted the debug branch February 22, 2022 21:14
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 this pull request may close these issues.

4 participants