       enabled = @debuggingEditorId == editor.getId()
       @emitEnableDisableAllControls enabled
     else
-      @execSubscriptions?.dispose()
+      @execSubscriptions.dispose()
       @execSubscriptions = new CompositeDisposable
       @execSubscriptions.add editor.onDidStartExecution => @handleExecutableStarted()
       @execSubscriptions.add editor.onDidStopExecution => @handleExecutableStopped()

      @emitEnableDisableAllControls false
    else
      @handleLevelChanged()
      @execSubscriptions?.dispose()
    return

  handleActiveLevelCodeEditorChanged: ->


  toggleBreakpoint: ->
    if !@allControlsDisabled && levelsWorkspaceManager.isActiveLevelDebuggable()
      points = levelsWorkspaceManager.getActiveTextEditorCursorPositions()
      for point in points
        if breakpointManager.toggle point
          @socketChannel.sendMessage OutgoingMessageFactory.createAddBreakpointMessage PositionUtils.fromPoint point
        else
          @socketChannel.sendMessage OutgoingMessageFactory.createRemoveBreakpointMessage PositionUtils.fromPoint point
    return

  removeAllBreakpoints: ->
