ztoben
V2EX  ›  问与答

falcon 框架如何开启调试?

  •  
  •   ztoben · Oct 15, 2020 · 1522 views
    This topic created in 2061 days ago, the information mentioned may be changed or developed.

    兄弟们,我迷惑了,最近在看 falcon 框架,想着手调试一番,竟然找不到他如何像 Django 或者 flask 一样在代码中运行,只能用 gunicorn/uwsgi 来运行吗? 在网上看到有人用这个方法 from wsgiref import simple_server with simple_server.make_server('127.0.0.1', 8000, app) as httpd: httpd.serve_forever() 但是一这么运行程序就直接卡住 请各位大佬给点建议

    3 replies    2020-10-15 16:17:32 +08:00
    Kobayashi
        1
    Kobayashi  
       Oct 15, 2020 via Android
    正常,没有内置 WSGI server 。参考 fastapi 搭配 uvicorn debug 教程。
    Kobayashi
        2
    Kobayashi  
       Oct 15, 2020 via Android
    ztoben
        3
    ztoben  
    OP
       Oct 15, 2020
    @Kobayashi fastapi 我这样调试过,这个框架有 uwsgi 的调试方法,但是程序无法运行,不知道 gunicorn 有没有这样的调试方法?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2843 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 08:06 · PVG 16:06 · LAX 01:06 · JFK 04:06
    ♥ Do have faith in what you're doing.