https://github.com/json2d/ptvsd-flask-reload
https://github.com/json2d/ptvsd-flask-reload
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/json2d/ptvsd-flask-reload
- Owner: json2d
- License: mit
- Created: 2019-02-14T04:32:09.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-14T04:49:32.000Z (over 6 years ago)
- Last Synced: 2025-02-07T04:42:07.623Z (5 months ago)
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ptvsd-flask-reload
demoing an issue when flask app is run with reloading
raises exception on repeat calls to `ptvsd.enable_attach`:
```
OSError(10048, 'Only one usage of each socket address (protocol/network address/port) is normally permitted', None, 10048, None)
```afterwards attaching to debugger works but does not work properly (breakpoints stop getting caught)
## Getting Started
Run this to start the flask app
```
./run.sh
```## Attaching to Debugger from VSCode Editor
the file `.vscode/launch.json` contains the launch config we'll use to attach, simply press `F5` to make run it.