Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

VS Code freezes during debug when trying to expand ciscoconfpase2 objects

Đang mở
#1,968 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
python, vscode
Lĩnh vực
devtools

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện ví dụ ciscoconfparse2 được cung cấp trong VS Code với Python 3.13.7, debugpy 2025.10.0 và phiên bản VS Code được liệt kê, sau đó kiểm tra việc mở rộng serial_objs thông qua các đối tượng con của nó. So sánh hành vi với PyCharm và xác định liệu hiện tượng treo nằm ở việc kiểm tra biến của debugpy hay ở cấu trúc đối tượng con của đối tượng; được xem là hoàn tất khi việc mở rộng đối tượng không còn làm VS Code bị treo.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Type: Bug

First I faced this behavior in my own code. Then I tried to run code from manual for testing.
Example code was taken from ciscoconfparse2 manual https://www.pennington.net/py/ciscoconfparse2/tutorial_parent_child.html :

conf = """
policy-map QOS_1
 class GOLD
  priority percent 10
 class SILVER
  bandwidth 30
  random-detect
 class default
!
interface Ethernet0/0
 ip address 1.1.2.1 255.255.255.0
 no cdp enable
!
interface Serial1/0
 encapsulation ppp
 ip address 1.1.1.1 255.255.255.252
!
interface Serial1/1
 encapsulation ppp
 ip address 1.1.1.5 255.255.255.252
 service-policy output QOS_1
!
interface Serial1/2
 encapsulation hdlc
 ip address 1.1.1.9 255.255.255.252
!
class-map GOLD
 match access-group 102
class-map SILVER
 match protocol tcp"""
 
config = conf.split('\n')

from ciscoconfparse2 import CiscoConfParse
parse = CiscoConfParse(config)
serial_objs = parse.find_objects("^interface Serial")
print(serial_objs)

Steps to reproduce:

  1. Start debuging the code.

  2. execute line serial_objs = parse.find_objects("^interface Serial")

  3. In Variables window try to expand object serial_obj
    serial_obj -> 0 -> all children -> 0

  4. VS Code freezes

  5. Afrer clicking red square button several times the xode execution cancelled and VS Code will unfreeze

It reproduses with all unnecessary plug-ins disabled
It reproduces in VS Code Insiders
There is no freeze in PyCharm wile expanding objects

Python 3.13.7
ciscoconfparse2==0.8.34

Image

VS Code version: Code 1.104.1 (0f0d87fa9e96c856c5212fc86db137ac0d783365, 2025-09-17T23:36:24.973Z)
OS version: Windows_NT x64 10.0.19045
Modes:

System Info
Item Value
CPUs 12th Gen Intel(R) Core(TM) i5-1240P (16 x 2112)
GPU Status 2d_canvas: enabled
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
trees_in_viz: 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.73GB (2.27GB free)
Process Argv --crash-reporter-id 5a772a63-00ab-4152-a0e3-b65436ccc523
Screen Reader no
VM 0%
Extensions (12)
Extension Author (truncated) Version
vscode-django bat 1.15.0
python-environment-manager don 1.2.7
python-extension-pack don 1.7.0
vsc-python-indent Kev 1.21.0
debugpy ms- 2025.10.0
python ms- 2025.14.0
vscode-pylance ms- 2025.8.1
vscode-python-envs ms- 1.8.0
autodocstring njp 0.6.1
intellicode-api-usage-examples Vis 0.2.9
vscodeintellicode Vis 1.3.2
jinja who 0.0.8
A/B Experiments
vsliv368:30146709
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
996jf627:31283433
pythonrdcb7:31342333
usemplatestapi:31297334
aj953862:31281341
nesew2to5:31336538
agentgpt4:31387437
nes-set-on:31351930
6abeh943:31336334
0927b901:31350571
ovs_t:31383295
0cj2b977:31352657
gaj49834:31362110
cloudbuttont:31379625
todos-1:31384886
multireplacestring:31387918
control_gpt5applypatchexclusively:31387916
3efgi100_wstrepl:31382709
trigger-command-fix:31379601
auto_model_enabled:31385282

Ngôn ngữ chính
Python
Star
2.5k
Fork
202
Merge trung bình
1 ngày 20 giờ
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/debugpy

Tất cả issue của microsoft/debugpy

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.