Validate debug adapter settings before launching, beyond the TTD trace path
還沒有人認領這個 Issue。
評估
研究方向
Start with AdapterSettingsDialog::apply() and validateSettings(), then read the duplicated check in DbgEngTTDAdapter::ExecuteWithArgsInternal and the settings model in SettingsView. Compare the listed adapter settings and the two validation approaches; done means the chosen validation mechanism covers dialog, launch, and headless paths without leaving the current checks duplicated.
由索引模型根據 Issue 內容生成。
描述
#910 / #1145 added validation for one specific case: the DBGENG_TTD adapter with no launch.trace_path set. That check lives in AdapterSettingsDialog::apply() and is deliberately narrow — it only covers the setting whose absence is guaranteed to fail the launch, so the dialog does not get in the way of anything an adapter would otherwise accept.
The same class of problem exists elsewhere. Settings that are required, or that point at a path which does not exist, are generally accepted by the dialog and only surface later as an adapter-specific error, if at all. Some candidates:
common.inputFile— pointing at a file that no longer exists- Working directory settings that name a nonexistent directory
- Remote host / port for the connect and debug-server flows: empty host, port 0, unparseable input
- Windows kernel and dump file adapters, where the target path is equally non-optional
- Executable path for the local adapters
Worth deciding on the mechanism before adding cases one at a time. Options:
- Keep extending
validateSettings()inAdapterSettingsDialogwith per-adapter special cases. Simple, but the UI ends up knowing adapter-specific rules, and it does nothing for headless use. - Give
DebugAdapterType(or the adapter) a validation entry point that returns the problems for the current settings, and have the dialog surface whatever it reports. Keeps the rules next to the adapter that owns them and can be reused by the launch path and headless callers.
Option 2 seems better long term. The #1145 change also duplicates the check in DbgEngTTDAdapter::ExecuteWithArgsInternal so scripted and dialog-skipped (#1133) launches are covered; a shared entry point would remove that duplication.
Separately, SettingsView could grow support for marking a setting as required, so the failure is visible in the settings UI itself rather than only in a message box on Accept.
- 主要語言
- C++
- 星號
- 342
- 分支
- 34
- 平均合併
- 7 天 21 小時
- 30 天內合併 PR
- 1
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
Vector35/debugger 的其他 Issue
-
bug Effort: Trivial
難度 2/5 1-3 小時 新手友好度 68/100
-
bug Effort: Trivial Impact: Low
難度 2/5 1-3 小時 新手友好度 68/100
-
難度 1/5 1 小時以內 新手友好度 95/100
-
Effort: Trivial enhancement UI
難度 2/5 1-3 小時 新手友好度 65/100
-
難度 2/5 1-3 小時 新手友好度 68/100
查看 Vector35/debugger 的全部 Issue
相似的 Issue
-
Bug Core VIF
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 80/100
ESPresense/ESPresense#2680 · 2 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1 小時以內 新手友好度 75/100
stew675/llama-cpp-rdna-boosts#348 ·
維護者通常 1 天內回覆
-
Documentation: Add comprehensive newcomer onboarding guide, project structure, and local usage to README可能已有人在做 @Ash-Blanc 今天認領。 未關閉area/other status/bot-triaged status/need-triage
難度 2/5 半天 新手友好度 85/100
-
bug
難度 1/5 1 小時以內 新手友好度 85/100
維護者通常 1 天內回覆