Skip to content

pycharm 断点配置

一、打开debug配置

alt text

二、添加python的debug配置

alt text

三、编辑debug配置

alt text

vscode断点配置

json
{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "后台重构",
            "type": "python",
            "request": "launch",
            "program": "${workspaceFolder}/newAdmin/manage.py",
            "args": [
                "runserver",
                "0.0.0.0:8019"
            ],
            "django": true,
            "console": "integratedTerminal",
            "env": {
                "PYTHONUNBUFFERED": "1"
            }
        }
    ]
}

备注:启动时,如果venv找不到虚拟环境,可以先手动启动成功,然后再按F5运行调试