microsoft / debugpy

An implementation of the Debug Adapter Protocol for Python
https://pypi.org/project/debugpy/
Other
1.85k stars 137 forks source link

Can't expand Numpy array to view its elements #1479

Open dcox1776 opened 1 year ago

dcox1776 commented 1 year ago

Type: Bug

Add a watch for any Numpy array. The ability to expand the Numpy array to view its elements is gone! It used to be there prior to the current version (1.83.1)

VS Code version: Code 1.83.1 (f1b07bd25dfad64b0167beb15359ae573aecd2cc, 2023-10-10T23:48:05.904Z) OS version: Windows_NT x64 10.0.22621 Modes:

System Info |Item|Value| |---|---| |CPUs|13th Gen Intel(R) Core(TM) i7-13700KF (24 x 3418)| |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
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|127.82GB (116.03GB free)| |Process Argv|--crash-reporter-id 5f2e50c0-51aa-4eaa-a2fc-652294354e7b| |Screen Reader|no| |VM|0%|
Extensions (14) Extension|Author (truncated)|Version ---|---|--- preview-jp2|ana|0.0.4 matlab|Gim|3.0.2 vscode-docker|ms-|1.26.1 debugpy|ms-|2023.3.12841009 isort|ms-|2023.10.1 python|ms-|2023.18.0 vscode-pylance|ms-|2023.10.20 jupyter|ms-|2023.9.1102792234 jupyter-keymap|ms-|1.1.2 jupyter-renderers|ms-|1.0.17 vscode-jupyter-cell-tags|ms-|0.1.8 vscode-jupyter-slideshow|ms-|0.1.5 cpptools|ms-|1.17.5 live-server|ms-|0.4.11
dcox1776 commented 1 year ago

I found an acceptable workaround... I can view the array elements by watching MyNumpyArray.tolist() It would nice, however, to have this capability built directly into watching Numpy arrays as previously.

hitlcl commented 1 year ago

i got this too. previous 3 and now it becomes 1

hitlcl commented 1 year ago

it seems to be the bug of python extention. I downgrade the python extention to v2023.16.0(newest is 18.0), it works well. image