     @stopDebuggingButton.disabled = true
     @stopDebuggingButton.innerHTML = 'Stop Debugging'
     @stopDebuggingButton.title = 'Stop Debugging'
-    @stopDebuggingButton.addEventListener 'click', => @stopDebugging()
+    @stopDebuggingButton.addEventListener 'click', => @debuggerPresenter.stopDebugging()
     commandsDiv.appendChild @stopDebuggingButton
 
     @stepButton = document.createElement 'button'

      replayButton.innerHTML = 'Replay'
      replayButton.title = 'Replay'
      replayButton.setAttribute 'data-call-id', callID
      replayButton.addEventListener 'click', (event) => @startReplay event
      cellReplay.appendChild replayButton
      row.appendChild cellCall
      row.appendChild cellReplay

  getElement: ->
    return @element

  clearTableBody: (tableBody) ->
    i = tableBody.rows.length
    while i-- > 0
