PowerShell / PowerShell/vscode-powershell
Error setting variable during debug
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 1.9k
- 派生
- 547
- PR 合并指标
- 30 天内没有已合并 PR
描述
Type: Bug
While debugging a PowerShell script, break execution, attempt to change the string value of an attribute of a PSCustomObject variable in the script.
Expected Outcome: The value of that attribute of the object is updated.
Actual Outcome:
Unexpected error setting variable: Unable to cast object of type 'Microsoft.PowerShell.EditorServices.Services.DebutAdapter.VariableDetails' to type 'Microsoft.PowerShell.EditorServices.Services.DebugAdapter.VariableContainerDetails'.
Extension version: 2025.0.0
VS Code version: Code 1.98.2 (ddc367ed5c8936efe395cffeec279b04ffd7db78, 2025-03-12T13:32:45.399Z)
OS version: Windows_NT x64 10.0.19045
Modes:
System Info
| Item | Value |
|---|---|
| CPUs | Intel(R) Xeon(R) W-2133 CPU @ 3.60GHz (12 x 3600) |
| GPU Status | 2d_canvas: enabled canvas_oop_rasterization: enabled_on direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_graphite: disabled_off video_decode: enabled video_encode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: enabled webnn: disabled_off |
| Load (avg) | undefined |
| Memory (System) | 15.68GB (3.21GB free) |
| Process Argv | --crash-reporter-id 15a8f0e2-3338-461b-94e3-acb54ccab3e4 |
| Screen Reader | no |
| VM | 0% |
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
14424t2-chatv7:31276447
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:31000557
dwnewjupytercf:31046870
nativerepl1:31139838
pythonrstrctxt:31112756
nativeloc2:31192216
5fd0e150:31155592
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
hdaa2157:31222309
copilot_t_ci:31222730
850i5325:31264362
e5gg6876:31271075
jda6j935:31233686
pythoneinst12cf:31262606
bgtreat:31268568
fh1c7952:31258891
4gafe986:31271826
31787653:31262186
3e8i5726:31271747
49da9784:31264548
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
复现暂停的 PowerShell 调试场景:修改 PSCustomObject 上的字符串属性,然后跟踪报告的 VariableDetails-to-VariableContainerDetails 强制转换错误附近的调试变量设置路径。完成标准是属性能够成功更新且不会出现意外错误,并为此情况提供回归覆盖。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- powershell, typescript, vscode
- 领域
- devtools
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100