我建议你创建一个合适的uWSGI网关。
示例设置可以是:
Linux 18.04 -> Nginx / Apache reverse web proxy mode -> Gunicorn (which has a debugger you can attach, this will output to the regular log files like other applications. Systemd logs I think) -> Flask web framework.
希望这可以帮助。