Answers for "adonisjs vscode debugger"

3

adonisjs vscode debugger

// FOR AdonisJS 4.1 AND LOWER VERSION
// 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
Posted by: Guest on June-16-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language