adonisjs vscode debugger

JavaScript
// in package.json add
...
  "scripts": {
    "dev": "adonis serve --dev --debug",
  }
...
// then create a launch.json file under .vscode folder in root
{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "node",
      "request": "launch",
      "name": "Debug Application",
      "runtimeExecutable": "npm",
      "runtimeArgs": [
        "run",
        "dev"
      ],
      "port": 9229,
      "internalConsoleOptions": "openOnSessionStart"
    }
  ]
}
// then it is ready to run
Source

Also in JavaScript: