dsh-cpp-probe
Manifest validC++ runtime info probe for Windows via CDB: cpp_trace prints variables at multiple breakpoints in one session (replaces hand-written print), cpp_probe dumps the call stack at a conditional breakpoint.
dsh-cpp-probe
为 DeepSeek Harness 提供 C++ 程序运行时信息 的插件。两个配合使用的工具:
| 工具 | 机制 | 用途 |
|---|---|---|
cpp_trace | 一次 cdb 会话设多个断点,每个命中按 print 模板打印变量,保留运行时序 | 替换手打 print,大批量观察运行时状态 |
cpp_probe | 一次 cdb 会话打一个条件断点,命中输出调用堆栈 | 用 cpp_trace 分析出可疑点后,往下钻看调用路径 |
共同点:实时运行(无 TTD 录制/重放)、不改源码、不重编、改配置即可增删断点、互不干扰。
依赖
- Windows + WinDbg/CDB(Windows Debugging Tools)
- Python 3.10+(默认
python,可用配置覆盖) - 一个带符号/源码的 Debug 构建(PDB,源码行断点用)
安装(标准组合包方式)
这是一个声明了 dsh.bundle 的组合包(bundle),直接用 dsh plugin 装进 profile:
dsh plugin --profile web add dsh-cpp-probe
装好后它会自动把 cpp-probe 插件层加入该 profile 的 bundle 层,并注册 cpp_trace / cpp_probe 两个工具。安装后需重启 dsh web 才会生效。
发布:本插件发布在 npm(
dsh-cpp-probe)。也可以用 GitHub 源码规格安装:dsh plugin --profile web add github:cuiyuexin428/dsh-cpp-probe
配置
插件默认配置在 cordis.patch.yml 的 config 里(随包携带)。不需要手动改 agent.cordis.yml。要覆盖默认值,用你 profile 的 cordis.patch.yml 按 id 覆写:
# $DSH_HOME/profiles/<name>/cordis.patch.yml
- id: cpp-probe
config:
python: python # python 可执行(默认 python)
defaultTimeoutSeconds: 120 # 整次超时(秒)
cdbPath: 'C:\\Windows Kits\\10\\Debuggers\\x64\\cdb.exe' # cdb 绝对路径(按你的环境改)
symbolPaths: ['C:\\path\\to\\build\\bin\\Debug'] # 你的 PDB/DLL 目录
sourcePaths: ['C:\\path\\to\\src'] # 源码根目录
cdb/符号/源码路径通过插件配置注入(
cdbPath/symbolPaths/sourcePaths),执行时动态生成 config.json。也可以直接改插件目录config.json作为默认值。
用法
cpp_trace(多断点打印变量,替换 print):
{
"exe": "C:\\path\\to\\yourapp.exe",
"breakpoints": [
{ "name": "Merge", "at": "C:\\path\\to\\YourClass.cpp:43",
"print": "pass={pass} e1.id={e1->id}" }
]
}
命中输出:Merge #1 pass=1 e1.id=6(按运行时序)。
cpp_probe(条件断点看栈):
{
"exe": "C:\\path\\to\\yourapp.exe",
"breakpoints": [
{ "name": "Merge", "at": "C:\\path\\to\\YourClass.cpp:43",
"condition": "e1->id > 0", "stack": true }
]
}
命中输出:Merge #1 + 完整调用栈(module!function 帧,按运行时序)。
许可
MIT
Comments
Loading…
Similar plugins
Windows-native computer use for DeepSeek Harness: two tools drive and read any desktop app. One batch call runs find, click, type, key, read, wait and screenshot steps in a single engine pass, so a ta
★ 0
dsh plugin --profile web add dsh-win-computer-useby nirvanaslash
Compiles a Windows .bat/.cmd launcher into a real .exe from inside DSH: renders an icon from a built-in bitmap font, emits a C# wrapper that runs the batch file next to it, compiles with csc.exe (or d
★ 0
JavaScript
Sep 12, 2026
dsh plugin --profile web add dsh-bat2exeWindows system-drive (C:) cleanup for DSH: rule-based scan, five-tier safety grading, a staging area with a rollback ledger, UAC elevation, and migration to another drive — a model tool plus a Web GUI
★ 0
dsh plugin --profile web add dsh-windows-c-cleanupby wly8691-jpg
Windows-native real-Office automation plugin (DSH). Contract, task-level, fault-injection and process-leak regressions covered; real-Office tests must be run on the target machine.
★ 6
↓ 538/wk
MIT
JavaScript
Oct 6, 2026
dsh plugin --profile web add @eqman00003/dsh-office-comCompares existing DSH sessions or runs controlled A/B trials between agent presets, showing aligned timelines, paired metric deltas, explicit success checks, and exportable reports.
★ 0
dsh plugin --profile web add dsh-plugin-compareby zxmqq1234
DeepSeek Harness(dsh)自动重试插件:报错自动重试、中断自动继续、挂起自动唤醒、 每一步右上角弹窗告诉你,不用再手动发"继续",数据看板还原每一次重试的真相。与 dsh系统重试互补而非替代——在内置重试耗尽或不覆盖的错误码上追加保障。
★ 9
MIT
TypeScript
Oct 15, 2026
dsh plugin --profile web add dsh-auto-retry