         return
       @client.on 'data', (data) =>
         console.log 'Received: ' + data
-        cmdParser.write(data.toString())
+        @cmdParser.write(data.toString())
         # client.destroy()
         # kill client after server's response
         return

  constructor: () ->
    @client = null
    @child = null
    
  # TODO: error handling on cmd or socket errors
  startDebugger: ->

      # case 'eval'                then
      # case 'processingException' then
      # case 'frames'              then
      
      # case 'breakpointDeleted'   then
      # case 'breakpointEnabled'   then
      # case 'breakpointDisabled'  then
      # case 'conditionSet'        then
      # case 'expressions'         then
      # case 'expressionInfo'      then
      # case 'threads'             then
      # case 'breakpoints'         then
      # case 'loadResult'          then

  # Tear down any state and detach
  destroy: ->
