Add debug logging to startTmuxSession for Windows troubleshooting

This commit is contained in:
2026-08-09 21:20:27 +02:00
parent 38b28f64fb
commit 07662dc9b7
+5 -1
View File
@@ -281,7 +281,10 @@ func (m *fullModel) startTmuxSession() tea.Cmd {
k9sCmdA := fmt.Sprintf("k9s --context %s -n %s", ctxA, m.selectedNamespace) k9sCmdA := fmt.Sprintf("k9s --context %s -n %s", ctxA, m.selectedNamespace)
// Kill stale session first (ignore error if none exists). // Kill stale session first (ignore error if none exists).
exec.Command("tmux", "kill-session", "-t", "kctl").Run() killErr := exec.Command("tmux", "kill-session", "-t", "kctl").Run()
fmt.Fprintf(os.Stderr, "[debug] selfPath=%s\n", selfPath)
fmt.Fprintf(os.Stderr, "[debug] panelCmd=%s\n", panelCmd)
fmt.Fprintf(os.Stderr, "[debug] kill-session err=%v\n", killErr)
args := []string{ args := []string{
"new-session", "-d", "-s", "kctl", "new-session", "-d", "-s", "kctl",
@@ -303,6 +306,7 @@ func (m *fullModel) startTmuxSession() tea.Cmd {
"attach", "-t", "kctl", "attach", "-t", "kctl",
) )
fmt.Fprintf(os.Stderr, "[debug] tmux args: %v\n", args)
c := exec.Command("tmux", args...) c := exec.Command("tmux", args...)
return tea.ExecProcess(c, func(err error) tea.Msg { return tea.ExecProcess(c, func(err error) tea.Msg {