【发布时间】:2019-11-10 13:31:02
【问题描述】:
我已经使用 Microsoft python 扩展在 vscode 上为现有的 django 1,11 项目设置了一个调试器,但这仅适用于http://127.0.0.1:5000/(主页)我需要这个调试器连接到我已经运行的服务器http://localhost:8000/ 我需要一个允许我在 vscode 上调试、使代码在特定断点处停止、使用谷歌浏览器调试各种 URL 的代码的设置。 这是我的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",
"--noreload",
"--nothreading"
],
"django": true
}
]
}
Python 2.7 姜戈 1.11 视觉工作室代码 macOS 卡塔利娜 请帮忙。
【问题讨论】:
标签: django python-2.7 visual-studio-code