-
Notifications
You must be signed in to change notification settings - Fork 183
Closed
Labels
needs reproIssue has not been reproduced yetIssue has not been reproduced yet
Description
Type: Bug
Behaviour
A variable inspection hangs if the variable has a property that has long time execution.
Steps to reproduce:
- Enable Python and Python Debugger extentions
- Create a test.py file with next content:
import time
class A:
@property
def long_timeout_value(self):
# This property represents the case where it has a long waiting time to get something.
# As an example: WebDriver element evaluation, API call (to super slow system) and any other long operation
time.sleep(10000)
a = A()
print('Set a brakepoint here')- Set a brakepoint on print line in the code above
- Create simple launch config:
{
"name": "Python Debugger: Current File",
"type": "debugpy",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal"
}- Run test.py and wait until code run to brakepoint
- In the "Run and Debug" panel, inspect
avariable of an object ofclass A
Expected result
After some time, for example 30 seconds (or a setting from the configuration file), if the a value could not be inspected then show an error and stop trying to inspect it.
Actual result
There is an infinite attempt to inspect the value of a. This may block further debugging.
Diagnostic data
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
2024-11-12 18:36:36.465 [info] Experiment 'pythonRecommendTensorboardExt' is active
2024-11-12 18:36:36.465 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2024-11-12 18:36:36.465 [info] Experiment 'pythonTestAdapter' is active
2024-11-12 18:36:36.466 [info] Native locator: Refresh started
2024-11-12 18:36:36.508 [info] Python interpreter path: ~\AppData\Local\Programs\Python\Python311\python.exe
2024-11-12 18:36:36.517 [info] > pyenv which python
2024-11-12 18:36:36.517 [info] cwd: .
2024-11-12 18:36:36.799 [info] Native locator: Refresh finished in 359 ms
2024-11-12 18:36:37.451 [info] Starting Jedi language server for test.
Extension version: 2024.18.1
VS Code version: Code 1.95.2 (e8653663e8840adaf45af01eab5c627a5af81807, 2024-11-07T11:07:22.054Z)
OS version: Windows_NT x64 10.0.19045
Modes:
- Python version (& distribution if applicable, e.g. Anaconda): 3.11.4
- Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): System
- Value of the
python.languageServersetting: Default
User Settings
languageServer: "Jedi"
Installed Extensions
| Extension Name | Extension Id | Version |
|---|---|---|
| JavaScript Debugger | ms-vscode.js-debug | 1.95.2 |
| JavaScript Debugger Companion Extension | ms-vscode.js-debug-companion | 1.1.3 |
| Python | ms-python.python | 2024.18.1 |
| Python Debugger | ms-python.debugpy | 2024.12.0 |
| Remote - SSH | ms-vscode-remote.remote-ssh | 0.115.0 |
| Remote - SSH: Editing Configuration Files | ms-vscode-remote.remote-ssh-edit | 0.87.0 |
| Remote Explorer | ms-vscode.remote-explorer | 0.4.3 |
| Table Visualizer for JavaScript Profiles | ms-vscode.vscode-js-profile-table | 1.0.10 |
System Info
| Item | Value |
|---|---|
| CPUs | Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz (8 x 3000) |
| 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) | 31.94GB (26.77GB free) |
| Process Argv | --crash-reporter-id e78784ee-1300-4192-bbeb-4026df619cd9 |
| Screen Reader | no |
| VM | 57% |
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
vscaat:30438848
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
724cj586:31013169
dvdeprecation:31068756
dwnewjupyter:31046869
newcmakeconfigv2:31071590
impr_priority:31102340
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc1:31134641
cf971741:31144450
iacca1:31171482
notype1:31157159
5fd0e150:31155592
dwcopilot:31170013
j44ff735:31179530
Metadata
Metadata
Assignees
Labels
needs reproIssue has not been reproduced yetIssue has not been reproduced yet
