Skip to content

Python Debugger not showing numpy array values after update  #135

Closed
@jav-ed

Description

@jav-ed

The issue was already created by someone else in the vscode repo. There we were told to raise the issue in here. Thus, I am just copying and pasting the issue from: microsoft/vscode#196159 microsoft/debugpy#1418

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.83.1
  • OS Version: Windows 11 22H2 build 22621.2428

Steps to Reproduce:

  1. Create a simple Python script that generates a numpy array, such as:
    import numpy as np test = np.zeros((3, 3))
  2. Set a breakpoint below the above code and run debug.
  3. Expand the 'test' variable in the locals section of the 'Debug and Run' window.
  4. Observe that below 'function variables' now no longer shows each row of the first axis of the array as it did in older versions.

VSCode_1_83_1

  1. If the new 'T' item that's below 'function variables' is expanded, this just loops the information from the root level.

VSCode_1_83_1_expand_loop

For reference, this is what it looked like with version 1.80.2:

VSCode_1_80_2

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage-neededNeeds assignment to the proper sub-team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions