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

[BUG] macOS 15 can not debug #1681

Closed
Sube-py opened this issue Sep 19, 2024 · 7 comments
Closed

[BUG] macOS 15 can not debug #1681

Sube-py opened this issue Sep 19, 2024 · 7 comments
Assignees
Labels
needs repro Issue has not been reproduced yet

Comments

@Sube-py
Copy link

Sube-py commented Sep 19, 2024

Issue Description

After upgrading the system,when I debug, vscode enters the debug command before the terminal starts up,I guess that caused the debug to fail.
like this:
image
and then:
image

Launch.json

{
            "name": "Python: FastAPI",
            "type": "debugpy",
            "request": "launch",
            "module": "uvicorn",
            "args": [
                "server:app",
                "--reload",
                "--port",
                "8888"
            ],
            "jinja": true,
            "justMyCode": false,
            "cwd": "${workspaceFolder}",
}

VsCode Version

1.93.1
38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40
arm64

Debugpy version

lastest

System Info

  System Version: macOS 15.0 (24A335)
  Kernel Version: Darwin 24.0.0
  Boot Volume: Macintosh HD
  Boot Mode: Normal
  Secure Virtual Memory: Enabled
  System Integrity Protection: Enabled
@Sube-py Sube-py changed the title macOS 15 can not debug [BUG] macOS 15 can not debug Sep 19, 2024
@karthiknadig karthiknadig transferred this issue from microsoft/vscode-python-debugger Sep 19, 2024
@github-actions github-actions bot added the needs repro Issue has not been reproduced yet label Sep 19, 2024
@Dotinkasra
Copy link

Dotinkasra commented Sep 22, 2024

I have this same problem.

VsCode Version

Version: 1.93.1 (Universal)
Electron: 30.4.0
ElectronBuildId: 10073054
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: 12.4.254.20-electron.0
OS: Darwin arm64 24.0.0

Launch.json

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python",
            "type": "debugpy",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal"
        }
    ]
}

Log File

debugpy.adapter-91589.log

debugger.vscode_26d6b749-7dd2-4276-a925-7734471828a1.log

@nleroy917
Copy link

Having issues here too but with Flask

@iliagerman
Copy link

I have the same issue on mac and python

@sirkozuch
Copy link

Same issue here. And indeed, as @Sube-py mentioned, the issue seems to be that the command is passed too early.

In fact, when I copy the said command and paste it again once the terminal starts up, debugging with integratedTerminal option works.

Screenshot 2024-09-24 at 16 22 12

@nleroy917
Copy link

In fact, when I copy the said command and paste it again once the terminal starts up, debugging with integratedTerminal option works.

Gotta be quick, but this works -- thanks for the tip

@rchiodo
Copy link
Contributor

rchiodo commented Sep 24, 2024

This should be a dupe of #1677

@rchiodo rchiodo closed this as completed Sep 24, 2024
@Sube-py
Copy link
Author

Sube-py commented Oct 8, 2024

It's finally fixed😄

1.94.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs repro Issue has not been reproduced yet
Projects
None yet
Development

No branches or pull requests

7 participants