cmux-debug-windows
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesecmux Debug Windows
cmux 调试窗口
Keep this workflow focused on existing debug windows and menu entries. Do not add a new utility/debug control window unless the user asks explicitly.
本工作流仅针对现有调试窗口和菜单项。除非用户明确要求,否则不要新增工具/调试控制窗口。
Workflow
工作流程
- Verify debug menu wiring in under
Sources/cmuxApp.swift.CommandMenu("Debug")- Menu path in app: →
Debug→ window entry.Debug Windows - The menu only exists in DEBUG builds (
Debug)../scripts/reload.sh --tag ... - Release builds (,
reloadp.sh) do not show this menu.reloads.sh
- Menu path in app:
- Keep these actions available in :
Menu("Debug Windows")
Sidebar Debug…Background Debug…Menu Bar Extra Debug…Open All Debug Windows
- Reuse existing per-window copy buttons () in each debug window before adding new UI.
Copy Config - For one combined payload, run:
bash
skills/cmux-debug-windows/scripts/debug_windows_snapshot.sh --copy- After code edits, run build + tagged reload:
bash
xcodebuild -project GhosttyTabs.xcodeproj -scheme cmux -configuration Debug -destination 'platform=macOS' build
./scripts/reload.sh --tag <tag>- 验证中
Sources/cmuxApp.swift下的调试菜单关联。CommandMenu("Debug")- 应用内菜单路径:→
Debug→ 窗口项。Debug Windows - 菜单仅在DEBUG构建版本中存在(执行
Debug生成)。./scripts/reload.sh --tag ... - Release构建版本(执行、
reloadp.sh生成)不会显示该菜单。reloads.sh
- 应用内菜单路径:
- 确保中保留以下操作选项:
Menu("Debug Windows")
Sidebar Debug…Background Debug…Menu Bar Extra Debug…Open All Debug Windows
- 在新增UI之前,复用每个调试窗口中已有的窗口专属复制按钮()。
Copy Config - 如需生成组合配置包,执行以下命令:
bash
skills/cmux-debug-windows/scripts/debug_windows_snapshot.sh --copy- 代码编辑完成后,执行构建+带标签重载:
bash
xcodebuild -project GhosttyTabs.xcodeproj -scheme cmux -configuration Debug -destination 'platform=macOS' build
./scripts/reload.sh --tag <tag>Key Files
关键文件
- : Debug menu entries and debug window controllers/views.
Sources/cmuxApp.swift - : Menu bar extra debug settings payload and defaults keys.
Sources/AppDelegate.swift
- :包含Debug菜单项及调试窗口控制器/视图。
Sources/cmuxApp.swift - :包含菜单栏额外调试设置配置包及默认键值。
Sources/AppDelegate.swift
Script
脚本
scripts/debug_windows_snapshot.sh
Purpose:
- Reads current debug-related defaults values.
- Prints one combined snapshot for sidebar/background/menu bar extra.
- Optionally copies it to clipboard.
Examples:
bash
skills/cmux-debug-windows/scripts/debug_windows_snapshot.sh
skills/cmux-debug-windows/scripts/debug_windows_snapshot.sh --copy
skills/cmux-debug-windows/scripts/debug_windows_snapshot.sh --domain <bundle-id> --copy- 用途:
scripts/debug_windows_snapshot.sh - 读取当前与调试相关的默认值。
- 打印sidebar/background/menu bar extra的组合配置快照。
- 可选将快照复制到剪贴板。
示例:
bash
skills/cmux-debug-windows/scripts/debug_windows_snapshot.sh
skills/cmux-debug-windows/scripts/debug_windows_snapshot.sh --copy
skills/cmux-debug-windows/scripts/debug_windows_snapshot.sh --domain <bundle-id> --copy