           appArgs or ''
         ]
 
-        # for coffee-script debugging
-        if isCoffee
-          args = [
-            '--nodejs'
-            "--debug-brk=#{port}"
-            file or appPath
-            appArgs or ''
-          ]
-
         logger.error 'spawn', dropEmpty(args)
 
         @process = childprocess.spawn nodePath, dropEmpty(args), {
           detached: true
+          cwd: path.dirname(args[1])
         }
 
         @process.stdout.on 'data', (d) ->

R = require 'ramda'
kill = require 'tree-kill'
Promise = require 'bluebird'
{Client} = require '_debugger'

        nodePath = @atom.config.get('node-debugger.nodePath')
        appArgs = @atom.config.get('node-debugger.appArgs')
        port = @atom.config.get('node-debugger.debugPort')

        appPath = @atom
          .workspace
