Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breakpoints can be inconsistent when UI sends files with different casing #896

Closed
fabioz opened this issue Apr 11, 2022 · 0 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@fabioz
Copy link
Collaborator

fabioz commented Apr 11, 2022

I just stumbled into a case where VSCode (1.66) sends a breakpoint such as:

{
    "arguments": {
        "breakpoints": [
            {
                "line": 477
            }
        ],
        "lines": [
            477
        ],
        "source": {
            "name": "File.py",
            "path": "c:\\python37\\lib\\File.py"
        },
        "sourceModified": false
    },
    "command": "setBreakpoints",
    "seq": 4,
    "type": "request"
}

But later on to remove the breakpoint it sends the file with a path with a different case:

{
    "arguments": {
        "breakpoints": [],
        "lines": [],
        "source": {
            "name": "File.py",
            "path": "c:\\python37\\Lib\\File.py"
        },
        "sourceModified": false
    },
    "command": "setBreakpoints",
    "seq": 4,
    "type": "request"
}

This makes it so that the debugger is not able to remove the breakpoint (because it considers that the original filename should be always the same one sent from the client, but apparently, this isn't always the case).

@fabioz fabioz self-assigned this Apr 11, 2022
@fabioz fabioz added the bug Something isn't working label Apr 11, 2022
@fabioz fabioz closed this as completed in de58062 Apr 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant