Remove listeners when debug window is disposed.
Display line numbers of commands in the output while running scripts.