   WatchPane = () ->
     state = builder3.root()
     refresh = () -> TreeView.populate(state)
-    _debugger.onBreak () =>
-        refresh()
+    listeners.push _debugger.onBreak () -> refresh()
     return state
 
   WatchPane.render = (state) ->

  LocalsPane = () ->
    state = builder2.root()
    refresh = () -> TreeView.populate(state)
    eventEmitter.on 'frame-selected', (frame) ->
      log "Frame selected"
      builder2.selectedFrame = frame
      refresh()


  CallStackPane = () ->
    state = builder.root()
    listeners.push _debugger.onBreak () ->
      log "Debugger.break"
      TreeView.reset(state)
      eventEmitter.emit('frame-selected', null)
