C++ 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. Install: dsh plugin --profile web add dsh-cpp-probe.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:cuiyuexin428/dsh-cpp-probe
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
为 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
Links
More in this category
Tencent/WeKnora#dsh-weknora★ 38526
Four read-only tools over a WeKnora knowledge base: list knowledge bases, hybrid passage search, reassemble one document's chunks in order, and WeKnora's own cited RAG or ReAct-agent answer with a resumable session id.
DayuanJiang/next-ai-draw-io#dsh-plugin★ 37266
Draws draw.io diagrams in DeepSeek Harness through the next-ai-drawio MCP server: the link in the reply opens a live preview in the right sidebar, you can edit the diagram by hand, and each AI change is a version you can restore. Node.js 18+; npx downloads the MCP server on first use.
yikart/AiToEarn#dsh-plugin-aitoearn★ 28921
Generate copy, images and short videos, and publish with one click to Douyin, Kuaishou, Xiaohongshu, WeChat Official, Bilibili, Facebook, TikTok and more, covering the full content lifecycle from creation to publishing and monetization.
superdesigndev/treg★ 9983
Tool catalog for agents: search ~2,600 external endpoints (SEO and SERP, backlinks, social, people and company enrichment, ad libraries, scraping) by the task you want done, read each one's parameters and per-call price, then call it with the credential injected server-side. Ships the skill plus an MCP row that stays disabled until TREG_TOKEN is set.
T-Auto/dsh-ops★ 6095
Provides bash, PowerShell 7, and high-performance Rust tools for DSH on Windows to reduce token usage.
Hithink-Tech-Org/Financial-API#hithink-finance★ 4745
Query Hithink Finance data in DeepSeek Harness, view charts in chat, and save refreshable dashboards.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.