简体   繁体   English

VSCode 在 python 中调试期间忽略断点

[英]VSCode ignoring breakpoints during debug in python

I'm trying to debug a Django project with VSCode.我正在尝试使用 VSCode 调试 Django 项目。 Everything works fine, I get the output and VSCode footer goes purple (debug mode) but it just ignores the breakpoints.一切正常,我得到输出并且 VSCode 页脚变为紫色(调试模式),但它只是忽略了断点。

  • I'm working on WSL (vscode remote)我正在研究WSL (vscode 远程)
  • Python 3.6.9 (virtualenv) Python 3.6.9(虚拟环境)
  • VSCode 1.43 (using Python and Python for VSCode extensions) VSCode 1.43(使用 Python 和 Python 进行 VSCode 扩展)

This is my launch.json file:这是我的 launch.json 文件:

{
"version": "0.2.0",
"configurations": [
{
  "name": "Django",
  "type": "python",
  "request": "launch",
  "stopOnEntry": false,
  "program": "${workspaceRoot}/bullfrogloader/manage.py",
    "args": [
        "runserver",
    ]
},
]
}

This is an screenshot of vscode running it, just in case you see something weird there:这是运行它的 vscode 的屏幕截图,以防万一你在那里看到一些奇怪的东西:

在此处输入图片说明

thank you so much guys, I just don't know what else to do.非常感谢你们,我只是不知道还能做什么。

您是否尝试通过添加“justMyCode”来更改launch.json:false

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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