(Based on CodeMirror) If you want to debug script, Use Chrome Developer Tool(Ctrl+Shift+I).
Confirm when close tab