code: def debug_file(self):
          
          self.switch_to_plugin()
          current_editor = self.get_current_editor()
          if current_editor is not None:
              current_editor.sig_debug_start.emit()
          self.run_file(debug=True)
docs: Debug current script