简体   繁体   中英

Visual studio code python debugger breakpoint won't trigger

I can't figure out why vscode debugger is not working. I tried everything, but the breakpoints are still not working. Has anyone had a similar problem, and solved it?

My lauch.json file just for reference:

{
        "name": "Python",
        "type": "python",
        "request": "launch",
        "stopOnEntry": true,
        "pythonPath": "${config.python.pythonPath}",
        "program": "${file}",
        "cwd": "${workspaceRoot}",
        "debugOptions": [
            "WaitOnAbnormalExit",
            "WaitOnNormalExit",
            "RedirectOutput"
        ]
    },

“stopOnEntry”:true,将此设置为false

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM