Skip to content

Instantly share code, notes, and snippets.

@numerodix
Created May 30, 2014 18:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save numerodix/c13ce7c1c0917b3b7dd9 to your computer and use it in GitHub Desktop.
Save numerodix/c13ce7c1c0917b3b7dd9 to your computer and use it in GitHub Desktop.
flask pdb test case
from flask import Flask
app = Flask(__name__)
import mod
@app.route("/")
def hello():
s = mod.get()
return s
if __name__ == "__main__":
app.run(debug=True)
def get():
import pdb; pdb.set_trace() # BREAKPOINT
return 'hi'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment