     @GlobalContext.getCurrentDebugContext()
       .continue "step_out"
 
+  clearAllBreakpoints: ->
+    @GlobalContext.setBreakpoints([])
+
+  clearAllWatchpoints: ->
+    @GlobalContext.setWatchpoints([])
   showWindows: ->
     editor = atom.workspace.getActivePane()
     # atom.workspace.open(PhpDebugContextUri)

    breakpoint = new Breakpoint({filepath:path, marker:marker})
    decoration = editor.decorateMarker(marker, {type: 'line-number', class: 'php-debug-breakpoint'})
    @GlobalContext.addBreakpoint breakpoint
    console.dir @serialize()



  activate: (state) ->
    if state
      @GlobalContext = atom.deserializers.deserialize(state)

    if !@GlobalContext
      @GlobalContext = new GlobalContext()
    # Events subscribed to in atom's system can be easily cleaned up with a CompositeDisposable
    @subscriptions = new CompositeDisposable

