For VSCode (full disclosure, I am one of the VSCode developers), try installing the Python extension to get started.
This documentation describes debugging Django . Debug configuration must be enabled or you can add your own file launch.json:
{
"name": "Django",
"type": "python",
"request": "launch",
"stopOnEntry": false,
"pythonPath": "${config.python.pythonPath}",
"program": "${workspaceRoot}/manage.py",
"args": [
"runserver",
"--no-color",
"--noreload"
],
"debugOptions": [
"WaitOnAbnormalExit",
"WaitOnNormalExit",
"RedirectOutput",
"DjangoDebugging"
]
}
The Python extension also provides many other features that you might find useful.
Hope you get started.
source
share