Editing while (python) debugger paused on exception causes extension to stop working and forces to reload window
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
Issue Type: Bug
Write some invalid python code, e.g.:
a = [1,2,3]
print(a[5])
print('done')
And launch a debugger with "pause on exceptions" set to True. As the debugger pauses and highlights the exception with a red box, attempting to edit the code while the debugger is still active very often causes the vim extension to "crash" - some things still work, but a lot of things stop working even after the debugger is stopped (for instance, it becomes impossible to delete things)
Extension version: 1.22.2
VS Code version: Code 1.65.2 (c722ca6c7eed3d7987c0d5c3df5c45f6b15e77d1, 2022-03-10T15:36:26.048Z)
OS version: Linux x64 5.16.16-zen1-1-zen
Restricted Mode: No
System Info
| Item | Value |
|---|---|
| CPUs | AMD Ryzen 7 4800H with Radeon Graphics (16 x 1400) |
| GPU Status | 2d_canvas: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on oop_rasterization: disabled_off opengl: enabled_on rasterization: disabled_software skia_renderer: enabled_on video_decode: disabled_software vulkan: disabled_off webgl: enabled webgl2: enabled |
| Load (avg) | 3, 2, 2 |
| Memory (System) | 30.84GB (9.50GB free) |
| Process Argv | --crash-reporter-id 9614dc43-c276-4d0e-94fc-c84de505d77f |
| Screen Reader | no |
| VM | 0% |
| DESKTOP_SESSION | plasma-i3 |
| XDG_CURRENT_DESKTOP | KDE |
| XDG_SESSION_DESKTOP | KDE-i3 |
| XDG_SESSION_TYPE | x11 |
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in VS Code 1.65.2 with the Python example, pause on exceptions, and edit while the debugger is active. Trace the extension's handling of edits and debugger state, then verify that editing no longer disables commands after the debugger stops.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, typescript, vscode
- Domain
- developer-experience, devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100