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