Until recently my Django projects would debug fine using launch.json file. But it stopped working today and I have no idea about it.
Changes made by me in system were:
- Clean-Installing Windows
- Installing python in default path just for current user and not all users
Problem Description:
- As soon as I click F5 key the debugger starts for some milliseconds and stops automatically without any prompt. As it does not shows any error I tried to log errors by nothing in it. It does not even load terminal to run commands.
The added configuration in launch.json file is as below:
{
"configurations": [
{
"name": "Python: Django",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}\\manage.py",
"args": [
"runserver"
],
"django": true,
"justMyCode": true,
"logToFile": true,
"console": "integratedTerminal",
"cwd": "${workspaceFolder}",
"host": "localhost"
}
]
}
Can someone help to troubleshoot this, I have already tried:
- Creating new projects
- Reinstalling Python
- Creating new environment
- Resetting VS Code Sync Settings
- Run other dubug configurations {they are working fine)
- Changing django debug configuration
My current options are:
- Research more (Already spent a hours would take more)
- Wait for solution by someone
- Clean Install Windows and all software's (Would be like BhramaAstra)


