In Ruby on Rails I can type fail
in the controller then go to the browser and view the list of params. How can I do that in flask(python) ?
Asked
Active
Viewed 58 times
0

davidism
- 121,510
- 29
- 395
- 339

hadyfarhat
- 391
- 1
- 5
- 17
-
Flask-DebugToolbar is probably the package you need. It can view the list of variables injected into jinja template – LeonF Dec 13 '16 at 18:34
-
@LeonF yes that's exactly what I was looking for! – hadyfarhat Dec 14 '16 at 07:38
1 Answers
0
You need to use mode debug, like below:
if __name__ == '__main__':
app.run(debug=True)
Now, you will be able to see any error from your browser.

ettanany
- 19,038
- 9
- 47
- 63