Skip to content

Python debugging not working #18473

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

Closed
LordBroon opened this issue Feb 8, 2022 · 3 comments
Closed

Python debugging not working #18473

LordBroon opened this issue Feb 8, 2022 · 3 comments

Comments

@LordBroon
Copy link

Debugger is not starting. It is just showed and disappear immediately. No error no message. At the same run button work as expected. It worked fine last week.
I have reinstalled python extension but issues still exist.

It is similar to bug raised in: #7927

0 Starting Session:
{
    "name": "Python: File",
    "type": "python",
    "request": "launch",
    "program": "c:\\Data\\t.py",
    "logToFile": true,
    "console": "integratedTerminal",
    "__configurationTarget": 5,
    "python": "C:\\ProgramData\\Anaconda3\\python.exe",
    "debugAdapterPython": "C:\\ProgramData\\Anaconda3\\python.exe",
    "debugLauncherPython": "C:\\ProgramData\\Anaconda3\\python.exe",
    "cwd": "c:\\...\\JupyterNotebookProjects",
    "envFile": "c:\\...\\JupyterNotebookProjects/.env",
    "env": {
        "PYTHONIOENCODING": "UTF-8",
        "PYTHONUNBUFFERED": "1"
    },
    "stopOnEntry": false,
    "showReturnValue": true,
    "internalConsoleOptions": "neverOpen",
    "debugOptions": [
        "ShowReturnValue",
        "FixFilePathCase"
    ],
    "justMyCode": true,
    "workspaceFolder": "c:\\...\JupyterNotebookProjects"
}
20 Client --> Adapter:
{
    "command": "initialize",
    "arguments": {
        "clientID": "vscode",
        "clientName": "Visual Studio Code",
        "adapterID": "python",
        "pathFormat": "path",
        "linesStartAt1": true,
        "columnsStartAt1": true,
        "supportsVariableType": true,
        "supportsVariablePaging": true,
        "supportsRunInTerminalRequest": true,
        "locale": "en-us",
        "supportsProgressReporting": true,
        "supportsInvalidatedEvent": true,
        "supportsMemoryReferences": true
    },
    "type": "request",
    "seq": 1
}
385 Error:
{}
385 Exit:
Exit-Code: 2
Signal: none

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Feb 8, 2022
@Lapayo
Copy link

Lapayo commented Feb 8, 2022

I probably have the same issue, it just randomly appeared today.
Run works, debug doesnt. Also tried reinstalling extension as well as rebooting my machine.
The issue also appears in Windows for me. In my WSL environment it still works fine.
This is my logged output:

0 Starting Session:
{
    "name": "Python: Current File",
    "type": "python",
    "request": "launch",
    "program": "c:\\Users\\XXXXXXX\\WORKSPACE\\XXXXXXX.py",
    "console": "integratedTerminal",
    "logToFile": true,
    "__configurationTarget": 5,
    "python": "C:\\Users\\XXXXXXX\\AppData\\Local\\Continuum\\anaconda3\\envs\\tf115\\python.exe",
    "debugAdapterPython": "C:\\Users\\XXXXXXX\\AppData\\Local\\Continuum\\anaconda3\\envs\\tf115\\python.exe",
    "debugLauncherPython": "C:\\Users\\XXXXXXX\\AppData\\Local\\Continuum\\anaconda3\\envs\\tf115\\python.exe",
    "cwd": "c:\\Users\\XXXXXXX\\WORKSPACE",
    "envFile": "c:\\Users\\XXXXXXX\\WORKSPACE/.env",
    "env": {
        "PYTHONIOENCODING": "UTF-8",
        "PYTHONUNBUFFERED": "1"
    },
    "stopOnEntry": false,
    "showReturnValue": true,
    "internalConsoleOptions": "neverOpen",
    "debugOptions": [
        "ShowReturnValue",
        "FixFilePathCase"
    ],
    "justMyCode": true,
    "workspaceFolder": "c:\\Users\\XXXXXXX\\WORKSPACE"
}
89 Client --> Adapter:
{
    "command": "initialize",
    "arguments": {
        "clientID": "vscode",
        "clientName": "Visual Studio Code",
        "adapterID": "python",
        "pathFormat": "path",
        "linesStartAt1": true,
        "columnsStartAt1": true,
        "supportsVariableType": true,
        "supportsVariablePaging": true,
        "supportsRunInTerminalRequest": true,
        "locale": "en",
        "supportsProgressReporting": true,
        "supportsInvalidatedEvent": true,
        "supportsMemoryReferences": true
    },
    "type": "request",
    "seq": 1
}
787 Error:
{}
788 Exit:
Exit-Code: 2
Signal: none

EDIT:
Rolling back to 2021.12.1559732655
solves the issue, upgrading to 2022 brings it back

@LordBroon
Copy link
Author

LordBroon commented Feb 8, 2022

You are right - rolling back to 2021.12 solve the issue for me as well.

@karthiknadig
Copy link
Member

Duplicate of #18436

If your conda version is older than 4.9.0, please update conda.

@karthiknadig karthiknadig removed the triage-needed Needs assignment to the proper sub-team label Feb 10, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants