Skip to content

debug should make suspending on start to be configurable #4870

@briandealwis

Description

@briandealwis

debug currently configures containers to be in a continue mode where the containers run without suspending. It can be useful for users to be able to connect to their containers immediately on execution, such as to debug a main() or init() method.

Proposal: debug should look at the container and/or pod for a suspend option and if present, then configure the pod to suspend on start (where possible). Suggestions are:

  • SKAFFOLD_DEBUG_SUSPEND environment variable
  • pod annotation for a skaffold.dev/debug/suspend

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions