PowerShell / PowerShell/vscode-powershell
Error setting variable during debug
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- TypeScript
- Star
- 1.9k
- Fork
- 547
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Tái hiện kịch bản gỡ lỗi PowerShell đang tạm dừng bằng cách thay đổi một thuộc tính chuỗi trên một PSCustomObject, sau đó lần theo đường dẫn thiết lập biến gỡ lỗi xung quanh lỗi ép kiểu VariableDetails-to-VariableContainerDetails đã được báo cáo. Hoàn thành khi thuộc tính được cập nhật thành công mà không xuất hiện lỗi ngoài dự kiến và có kiểm thử hồi quy cho trường hợp này.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- powershell, typescript, vscode
- Lĩnh vực
- devtools
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 42/100