From 2ae0e546e5c0411059580ede78ec4ff8416ea7ef Mon Sep 17 00:00:00 2001 From: Mihnea Dobrescu-Balaur Date: Sat, 21 May 2016 19:37:03 -0700 Subject: [PATCH] Use debug when main. --- execution_trace/viewer/viewer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/execution_trace/viewer/viewer.py b/execution_trace/viewer/viewer.py index d70cf78..b6012af 100644 --- a/execution_trace/viewer/viewer.py +++ b/execution_trace/viewer/viewer.py @@ -42,7 +42,8 @@ def main(): for line in f: record_data.append(json.loads(line)) - app.run() + debug = __name__ == '__main__' + app.run(debug=debug) if __name__ == "__main__":