【发布时间】:2019-11-01 18:43:30
【问题描述】:
我有一个 devcontainer.json 和一个带有新远程容器插件在 vs-code 中的 launch.json 的设置。但我无法让断点工作。我启动了应用程序并可以浏览它,但没有命中断点,我的 launch.json 中是否缺少某些内容?
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Django",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/manage.py",
"args": [
"runserver",
"0.0.0.0:8000",
],
"env": {
"PYTHONUNBUFFERED": 1,
"ENV": "local",
"DJANGO_SITE_ID": 1,
"DJANGO_SETTINGS_MODULE": "project.settings.local1",
}
}
]
}
【问题讨论】:
标签: python django visual-studio-code remote-debugging