Closed profRidha closed 3 weeks ago
À noter également que lorsque le débogage atteint une fonction, si je ferme le panneau des variables puis que je l'ouvre à nouveau, il affiche "Chargement des variables" sans rien montrer par la suite. https://youtu.be/BRrazmFqCFg
C'est un problème de compatibilité de l'extension Jupyter v2024.10.2024100401 (ou de l'extension Python Debugger v2024.13.2024101501) avec la dernière version de l'interpréteur Python 3.13
Aucun problème de l'extension avec les versions précédentes de l'interpréteur Python (ici dans l'image Python 3.12.7).
Same problem under vscode 1.95 witdh Jupyter v2024.11.2024102401 (Python 3.13.0).
Can you translate this to english? I can't repro what your screenshot shows with that code:
def test(param_1, param_2):
local_1 = param_1
local_2 = param_2
return local_1 + local_2
global_1 = 1
global_2 = 2
global_3 = test(global_1, global_2)
Can you translate this to english? I can't repro what your screenshot shows with that code:
def test(param_1, param_2): local_1 = param_1 local_2 = param_2 return local_1 + local_2 global_1 = 1 global_2 = 2 global_3 = test(global_1, global_2)
It's a simple code that contains in the main program 3 globals variables (global_1, global_2, global_3) , and in the function test 4 locals variables (param_1, param_2, local_1 and local_2).
The purpose of this example is to indicate that the display of local variables presents an issue. during debugging (by F10), when the debugger reaches the function (test).
Try to watch my video and see the content of the "variables" tab during debugging :
Note that the issue occurs only with Python 3.13.0. Here is another example :
Watch this second video and see the content of the "Jupyter variables" tab during debugging : https://youtu.be/VFUD9KHEeGI
Try to see this image:
there are no issues during debugging (by F10) when the debugger reaches the function with Python 3.12.7, but there is no display of the variables with Python 3.13.0 :
voir #16187
marking as duplicate of https://github.com/microsoft/vscode-jupyter/issues/16187
Type: Bug
Lors du débogage d'une cellule de code Jupyter dans Visual Studio Code en utilisant la touche F10 (exécution par ligne), il est observé que lorsque le code contient une fonction, l'activation de l'option "ouvrir l'affichage des variables" ne montre que les variables globales pendant le déroulement du débogage. https://youtu.be/wP3oCRQrsGg
Extension version: 2024.10.2024100401 VS Code version: Code 1.94.2 (384ff7382de624fb94dbaf6da11977bba1ecd427, 2024-10-09T16:08:44.566Z) OS version: Windows_NT x64 10.0.19045 Modes:
System Info
|Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz (4 x 3293)| |GPU Status|2d_canvas: enabledcanvas_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)|3.90GB (0.68GB free)| |Process Argv|--crash-reporter-id 112baf61-ccbc-43d1-90db-9e4d7a969c3f| |Screen Reader|no| |VM|0%|
A/B Experiments
``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492cf:30256860 vscod805:30301674 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 vscrp:30673768 2i9eh265:30646982 962ge761:30959799 pythongtdpath:30769146 pythonnoceb:30805159 asynctok:30898717 pythonmypyd1:30879173 h48ei257:31000450 pythontbext0:30879054 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 945dj816:31013170 dvdeprecation:31068756 dwnewjupyter:31046869 newcmakeconfigv2:31071590 impr_priority:31102340 nativerepl1:31139838 refactort:31108082 pythonrstrctxt:31112756 wkspc-onlycs-t:31132770 nativeloc2:31134642 wkspc-ranged-t:31151552 cf971741:31144450 defaultse:31146405 iacca1:31156133 notype1cf:31157160 5fd0e150:31155592 dwcopilot:31162478 icondisabled:31158250 ```