Skip to content

feat(debug): add built-in diagnostics center - #4

Merged
viewer12 merged 2 commits into
mainfrom
feature/debug-diagnostics
Aug 6, 2026
Merged

feat(debug): add built-in diagnostics center#4
viewer12 merged 2 commits into
mainfrom
feature/debug-diagnostics

Conversation

@viewer12

@viewer12 viewer12 commented Aug 6, 2026

Copy link
Copy Markdown
Owner

本轮交付

新增内置「诊断」能力(设置页 → 诊断):

  • 一键开启/关闭 Debug 日志:直接写入 clash 持久化覆盖配置 log-level=debug,并自动启动 LogcatService 把内核日志落盘(无需手动进日志页)
  • 导出诊断包:打包为 zip 分享,包含
    • info.txt:应用/核心版本、设备信息、TUN 栈、DNS 模式、IPv6、日志等级等
    • connections.json:当前连接快照(可见每条连接走的代理链)
    • logs/:clash 内核日志文件
  • 状态面板实时显示:Clash 运行状态、核心版本、模式、TUN 栈、日志等级、当前连接数
  • 新增 FileProvider 用于分享诊断包

使用场景

定位链式代理 + ChatGPT SSL 证书错误:开启 Debug 日志 → 重连 VPN → 复现问题 → 导出诊断包

- New Diagnostics screen reachable from Settings
- One-tap enable/disable debug logging (clash log-level override + file recording)
- Export diagnostics bundle: app/core info, config summary, connections snapshot and clash log files as a shareable zip
- Add FileProvider for sharing the bundle
@viewer12
viewer12 merged commit 989ef6a into main Aug 6, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant