microsoft / microsoft/vscode-cpptools
Expressions display incorrectly in watch window
未关闭
还没有人认领这个 Issue。
debugger
- 主要语言
- TypeScript
- 星标
- 6.2k
- 派生
- 1.7k
- 平均合并
- 14 小时 46 分钟
- 30 天内合并 PR
- 61
描述
Environemnt:
- VSCode Version: 1.11.2
- Cpptools: \cpvsbuild\Drops\MDDDebugger\CppTools\20170425.3\Extension\cpptools.vsix
- OS Version: Win10 x64
Steps to Reproduce:
- Open attachment in vscode.
- Set breakpoints at the line of 87,89 in source.cpp and 9,12 in mylib.cpp.
- Press F5 to start debugging(hit 87 line in source.cpp file).
- Press F5(hit 9 line in mylib.cpp file)->F10(hit 10 line in mylib.cpp file)->F5(hit 12 line in mylib.cpp file)->F5(hit 89 line in mylib.cpp file).
- Evaluate function "myclass->DisplayAge(30)" in watch window ,It inputs "Cannot evaluate function -- may be inlined"

- Evaluate myclass->DisplayAge(30)" again.
Excepted:
It inputs "Cannot evaluate function -- may be inlined"
Actual:
It value is "-var-create: unable to create variable object"

Log:log.txt
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先使用 source.cpp、mylib.cpp、链接的附件和 log.txt 重现 watch 窗口序列。比较对 myclass->DisplayAge(30) 的第一次和第二次求值,并检查调试器输出以了解不同的结果。完成的标准是重复求值始终报告预期消息,而不是 -var-create: unable to create variable object。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- cpp, vscode
- 领域
- devtools
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 30/100