File: main.py

package info (click to toggle)
debugpy 1.8.12%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,424 kB
  • sloc: python: 14,451; sh: 184; makefile: 33
file content (9 lines) | stat: -rw-r--r-- 308 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
# For multiproc attach, we need to use a helper stub to import debuggee before running
# Flask; otherwise, we will get the connection only from the subprocess, not from the
# Flask server process.

import debuggee
import runpy

debuggee.setup()
runpy.run_module("flask", run_name="__main__", alter_sys=True)