Created
May 30, 2014 18:01
-
-
Save numerodix/c13ce7c1c0917b3b7dd9 to your computer and use it in GitHub Desktop.
flask pdb test case
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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