Skip to content

Debugger stuck trying to load variables #952

@akhileshraju

Description

@akhileshraju

Environment data

  • debugpy version: 1.6.0
  • OS and version:
    • VS Code UI running on Win 10 Enterprise - Build 18363
    • Development env - Ubuntu 18.04 (Connected via the Remote SSH plugin)
  • Python version: Python 3.10
  • Using VS Code

Actual behavior

When trying to debug python code that is part of python package chipscopy, the debugger in VS Code gets stuck trying to resolve variables.

image

Once this happens, no other debug functionality works. The only option left is to use the "stop" button and end the debugging session.

Here's is the launch config I am using

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Engine",
            "type": "python",
            "request": "launch",
            "cwd": "${workspaceFolder}",
            "linux": {
                "python": "${workspaceFolder}/.venv/bin/python"
            },
            "windows": {
                "python": "${workspaceFolder}\\.venv\\Scripts\\python.exe"
            },
            "program": "${workspaceFolder}${pathSeparator}engine${pathSeparator}main.py",
            "env": {
                "PYTHONPATH": "${workspaceFolder}${pathSeparator}engine:${PYTHONPATH}",
                "DEBUGPY_LOG_DIR": "${workspaceFolder}${pathSeparator}engine"
            },
            // https://github.com/microsoft/vscode-python/issues/13719#issuecomment-705768580
            "rules": [
                {"module": "chipscopy", "include": true},
                {"module": "chipscopy.tcf", "include": false}
            ],
            "justMyCode": true,
            "preLaunchTask": "python:run-protoc",
            // Ctrl-C cannot be sent using debug console
            "console": "integratedTerminal"

        }
    ]
}

Expected behavior

I expect debugging to work just fine since debugging the same application in PyCharm works without issues.

Steps to reproduce:

I, unfortunately, cannot share the source code since it's proprietary. I have attached the debugpy logs.
Please let me know if I can provide any other info.

debugpy.pydevd.5433.log
debugpy.server-5433.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions