Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Any object with more than two levels is truncated

Open
#1,819 9 comments 0 reactions 1 assignee View on GitHub

@heejaechang is already working on this.

Since Jan 28, 2025.

Assessment

This issue has not been assessed yet.

Description

enhancement

Type: Bug

Behaviour

Clicking "Copy value" in the variables context menu leads to the presented object being copied as-is, i.e. truncated.

I have tested the JS debugger and it does not exhibit the same behaviour.

Steps to reproduce:

  1. Right-click a variable and click "Copy value"
  2. Paste somewhere

For example, trying to copy this dictionary:

Image

leads to the clipboard containing this ellipsis

{'hold': {'result': [...]}}

instead of the actual dictionary.

Diagnostic data

launch.json configuration

    "launch": {
        "version": "0.2.0",
        "configurations": [
            {
                "name": "Python: localhost attach",
                "type": "debugpy",
                "request": "attach",
                "justMyCode": false,
                "connect": {
                    "host": "localhost",
                    "port": 6678
                },
                "pathMappings": [
                    {
                        "localRoot": "${workspaceFolder}",
                        "remoteRoot": "${workspaceFolder}"
                    }
                ],
            },
            {
                "name": "Python: Debug Tests",
                "type": "debugpy",
                "request": "launch",
                "program": "${file}",
                "purpose": ["debug-test"],
                "justMyCode": false
              }
        ],
        "compounds": []
    },

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

N/A

Output for Python Debugger in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python Debugger)

N/A

Extension version: 2024.14.0
VS Code version: Code 1.96.2 (fabdb6a30b49f79a7aba0f2ad9df9b399473380f, 2024-12-19T10:22:47.216Z)
OS version: Linux x64 5.14.0-503.21.1.el9_5.x86_64
Modes:

  • Python version (& distribution if applicable, e.g. Anaconda): 3.12.6
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Conda
System Info
Item Value
CPUs AMD EPYC 7763 64-Core Processor (4 x 0)
GPU Status 2d_canvas: unavailable_software
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: disabled_off
webnn: unavailable_software
Load (avg) 2, 1, 2
Memory (System) 15.32GB (6.89GB free)
Process Argv
Screen Reader no
VM 0%
DESKTOP_SESSION gnome
XDG_CURRENT_DESKTOP GNOME
XDG_SESSION_DESKTOP undefined
XDG_SESSION_TYPE x11
Dominant language
Python
Stars
2.5k
Forks
202
Avg merge
5d 1h
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/debugpy

All issues in microsoft/debugpy

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.