Python Flask Debug Mode not working?

I am trying to enable debug mode but it doesn’t seem to be working as I am not recieving errors on bad [url=]Pythonrequests my code:

from flask import Flask, request, jsonify, render_template, redirect, send_from_directory
import logging
from datetime import datetime
from time import sleep
import webbrowser
import json

app = Flask(name)
log = logging.getLogger(‘werkzeug’)

def serve_static(path):
return send_from_directory(‘static’, path)

def serve_static_js(path):
return send_from_directory(‘static’, path)

def home():
return render_template(‘index.html’)‘’)

app.debug = True