How do I view errors my Flask App is returning?
<p>I've started to make an app using Python 3 with the Flask framework. I mostly followed this <a href="https://pythonprogramming.net/creating-first-flask-web-app/" rel="nofollow">tutorial</a>. I'm currently using a free-tier AWS Ubuntu-16.04 server to host the app on while trying to develop it.</p>

<p>How am I meant to see the errors that my Flask App is returning?  - as most of the time I receive a 500 Internal Server Error in my browser. Also is there an easier setup I should be using to develop and debug the app.</p>

<p>Thanks</p>

<p>Edit 1:</p>

<pre><code>#!/usr/bin/python
from flask import Flask, render_template, request


app = Flask(__name__)
app.debug = True


@app.route('/table')
def current_return():
    data = ['one', 'two', 'three']
    return render_template("current.html",data = data)


if __name__ == "__main__":
    app.run()
</code></pre>

<p>You should enable debugging for your app.</p>

<pre><code>app = Flask(__name__)
app.debug = True
</code></pre>

<p>That will output the traceback on the error pages, instead of just a generic 'Server error' page. </p>

python python-3.x flask