showing results for - "adonis ace debug vscode"
Pacome
13 Jun 2018
1// FOR AdonisJS 5 AND GREATER
2{
3  "version": "0.2.0",
4  "configurations": [
5    {
6      "type": "pwa-node",
7      "request": "launch",
8      "name": "Debug Application",
9      "runtimeExecutable": "node",
10      "runtimeArgs": [
11        "ace",
12        "serve",
13        "--watch"
14      ],
15      "internalConsoleOptions": "openOnSessionStart"
16    }
17  ]
18}
Laura
10 Jan 2018
1// FOR AdonisJS 4.1 AND LOWER VERSION
2// in package.json add
3...
4  "scripts": {
5    "dev": "adonis serve --dev --debug",
6  }
7...
8// then create a launch.json file under .vscode folder in root
9{
10  "version": "0.2.0",
11  "configurations": [
12    {
13      "type": "node",
14      "request": "launch",
15      "name": "Debug Application",
16      "runtimeExecutable": "npm",
17      "runtimeArgs": [
18        "run",
19        "dev"
20      ],
21      "port": 9229,
22      "internalConsoleOptions": "openOnSessionStart"
23    }
24  ]
25}
26// then it is ready to run