 {client} = require '../connection'
 
 workspace = require './workspace'
+cons = require './console'
 
-{nextline, stepin, finish, stepexpr} =
-  client.import ['nextline', 'stepin', 'finish', 'stepexpr']
+{nextline, stepin, finish, stepexpr, bp} =
+  client.import ['nextline', 'stepin', 'finish', 'stepexpr', 'bp']
 
 breakpoints = null
 

    if !@active
      @stepper.destroy()
      workspace.update()

  stepto: (file, line, text) ->
    @stepper.goto file, line-1

    if (existing = breakpoints.get(file, line, @breakpoints)[0])?
      @breakpoints = @breakpoints.filter (x) -> x != existing
      return existing.destroy()
    thebp = breakpoints.add file, line
    @breakpoints.push thebp
    bp file, line+1

  togglebp: (ed = atom.workspace.getActiveTextEditor()) ->
    return unless ed
