Giter Club home page Giter Club logo

Comments (8)

jonjohnsonjr avatar jonjohnsonjr commented on May 18, 2024 1

The skaffold folks are doing some interesting work that we might be able to steal:

https://github.com/GoogleContainerTools/container-debug-support
GoogleContainerTools/skaffold#2306

from ko.

jonjohnsonjr avatar jonjohnsonjr commented on May 18, 2024

cc @Harwayne @ilackarms
xref: knative/eventing#1733

I think the short version is that you need a base image that contains ls and use the --disable-optimizations flag. We should definitely make this easier and document it, though.

from ko.

slinkydeveloper avatar slinkydeveloper commented on May 18, 2024

Can we enable remote debugging just packaging dlv and running the application with dlv? In a similar fashion to this: https://mikemadisonweb.github.io/2018/06/14/go-remote-debug/

from ko.

jonjohnsonjr avatar jonjohnsonjr commented on May 18, 2024

I think it's a good idea -- I prototyped something like this that would rewrite the base image and entrypoint to automagically drop you into a delve debugging session, but ultimately my lack of k8s/delve knowledge made me give up. It only worked ~30% of the time and leaked a bunch of connections/resources that were tough to clean up.

Getting the user experience correct here is tough, I think. We could make things incrementally better pretty easily, e.g. some way to just include delve in the produced binary is a good start.

from ko.

github-actions avatar github-actions commented on May 18, 2024

This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Reopen the issue with /reopen. Mark the issue as
fresh by adding the comment /remove-lifecycle stale.

from ko.

slinkydeveloper avatar slinkydeveloper commented on May 18, 2024

/remove-lifecycle stale

from ko.

github-actions avatar github-actions commented on May 18, 2024

This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Reopen the issue with /reopen. Mark the issue as
fresh by adding the comment /remove-lifecycle stale.

from ko.

slinkydeveloper avatar slinkydeveloper commented on May 18, 2024

/remove-lifecycle stale

from ko.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.