-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debugging flask app results in "TypeError: compile() expected string without null bytes" #145
Comments
From @KillyMXI on August 5, 2017 17:42 I've got an issue with debugging Flask too. I made the following changes to make it work:
Run flask as module instead of script (not sure if it ever able to work in the way default config is suggesting!) Setting Upd: found Debugging Flask page, with important note for Windows users. RTFM after facing some strange issues isn't a good workflow :( |
Created a new issue to ensure the launch.json is updated accordingly. |
@DonJayamanne hi! Thanks for direction. I have same issue with pyramid debugging.
|
@SowingSadness can you open a new issue? |
@brettcannon |
From @nicebits on July 18, 2017 4:24
Environment data
VS Code version: 1.14.1
Python Extension version: 0.6.7
Python Version: 2.7.13
OS and version: Windows 10 x64
Actual behavior
Debugging a simple flask app results in the error message "TypeError: compile() expected string without null bytes" being printed to the debug console.
Expected behavior
The debugger to attach and the flask app to begin running a HTTP server.
Steps to reproduce:
This is reproducible on a completely blank Windows 10 installation.
Settings
Your launch.json (if dealing with debugger issues):
Your settings.json:
Logs
Output from
Python
output panelOutput from
Console window
(Help->Developer Tools menu)Copied from original issue: DonJayamanne/pythonVSCode#1095
The text was updated successfully, but these errors were encountered: