falcon icon indicating copy to clipboard operation
falcon copied to clipboard

Development server

Open kgriffs opened this issue 12 years ago • 6 comments

(Copied by @vytas7 from the first comment of #1056 )

The updraft development server: https://github.com/falconry/updraft

Desired Features:

  • Auto-reload
  • Full pdb support
  • Legible Tracebacks

Notes:

  • Should probably log out a note about this being a development server.

kgriffs avatar Jan 23 '13 21:01 kgriffs

It would be great to have a nice debugging/dev server that you can use to auto-reload, break into a REPL, etc.

kgriffs avatar May 21 '13 18:05 kgriffs

From IRC:

xris: has any thought been given to some sort of debug middleware like other frameworks provide? xris: I've been playing with pycharm's debugger today (looks like a variation of pydev for eclipse) and it'd be easy to add as middleware, but I'm wondering if a pluggable sort of thing built into falcon might be useful.

kgriffs avatar Apr 14 '14 13:04 kgriffs

Something else that might be useful (TBD): https://github.com/jonathanslenders/python-prompt-toolkit

kgriffs avatar Oct 10 '14 18:10 kgriffs

+1

kevinisaac avatar Jan 19 '15 19:01 kevinisaac

I'll take a look at this. I'll probably be slow at it though. :-)

csojinb avatar Apr 15 '15 17:04 csojinb

Normally, it would be unclear if this provides much value over just using Gunicorn (autoreload is supported) or similar as a debugging server.

However, now that we are going to support both WSGI and ASGI, could it be worth revisiting this? We could combine wsgiref and asgiref into one tool that would automatically recognize which flavour of Falcon (or a non-Falcon app, for that matter) we're dealing with, and would start serving accordingly.

vytas7 avatar Jul 17 '20 18:07 vytas7