Skip to content

Troubleshooting Python debugging on a Unknown Source #2

@TheRobBrennan

Description

@TheRobBrennan

Hi there! Thank you for creating this project. I am using it as a starting point to explore learning and debugging Python in VS Code.

One issue I've encountered is that I cannot get it to properly debug in the VS Code IDE. If I stick with the strict ptvsd == 3.0.0, I can get it to partially debug. It will pause on the breakpoints, but nothing will be highlighted in the IDE (a la a typical debugging experience with VS Code) and it will say that the source file is an "Unknown Source"

If you're interested, I'd love to know if you have any possible solution to that. And if you're not, that's fine too - I know open source examples can be a labor of love 😀

I've created a branch that reproduces this in a slightly modified version of your example - using docker-compose to load the Dockerfile, etc at https://github.com/TheRobBrennan/demo-python-docker-vscode-debug/tree/troubleshooting-vscode-debugger

Here is what I'm seeing while running the latest version of VS Code:
00a
00b

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions