kubectl debug can produce an incorrectly configured ephemeral container when a profile is applied, especially when the pod already has other ephemeral containers or profile application changes container ordering. The generated result should identify the intended debug container and reflect its requested settings; copied-pod profiles should remain correct too. Related kubectl get and set workflows should preserve complete sorted output, empty-result diagnostics, label-column validation, and resource-selector behavior.