how to remote debug with vscode ?
how to remote debug with vscode ? 


remote server below command 

$ node --inspect

or 

$ node --inspect-brk app.js

 vscode can't connect throw timout.

$ node --inspect app.js

  throw some error! 

   **app.js:1
  (function (exports, require, module, __filename, __dirname) { import './env'**


   [app.js](https://github.com/Molunerfinn/vue-koa-demo/blob/master/app.js)

my entery command is   **npm run server** from [package.json](https://github.com/Molunerfinn/vue-koa-demo/blob/master/package.json)

      "server": "nodemon -w app.js -w server server-entry.js",


here is my vs code debug launch.json file

  {
   
    "version": "0.2.0",
    "configurations": [
      
      {
        "type": "node",//may be nodemon?
        "request": "attach",
        "name": "Attach to Remote",
        "address": "192.168.65.131",
        "port": 9229,
        "localRoot": "${workspaceFolder}",
        "remoteRoot": "/home/vue-koa-demo/"
      }
    ]
    }

where is wrong with my code?




