forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
area-debuggingbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug
Description
From @SwagVervindil on August 27, 2017 18:2
Environment data
VS Code version: 1.15.1
Python Extension version: 0.7.0 (3 August 2017)
Python Version: 3.6.0
OS and version: Windows 10
Actual behavior
When I start debug my code break when I want get request.data:
django.http.request.RawPostDataException: You cannot access body after reading from request's data stream
And server return 500 HttpCode
If I set reakpoint before request.data i have this errors, bit if set after all work fine
Expected behavior
To run next line. I check in pycharm and this code work fine.
Code
I use djangorestframework version: 3.5.4
launch.json
{
"name": "Django",
"type": "python",
"request": "launch",
"stopOnEntry": false,
"pythonPath": "${config:python.pythonPath}",
"program": "${workspaceRoot}/manage",
"cwd": "${workspaceRoot}",
"console": "none",
"args": [
"runserver",
"--noreload",
"0.0.0.0:8000"
],
"exceptionHandling": {
"ignore": ["ImportError"]
},
"env": {
"DJANGO_SETTINGS_MODULE": "settings.dev"
},
"debugOptions": [
"WaitOnAbnormalExit",
"WaitOnNormalExit",
"RedirectOutput",
"DjangoDebugging"
]
}
Copied from original issue: DonJayamanne/pythonVSCode#1181
Metadata
Metadata
Assignees
Labels
area-debuggingbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug