Comments (3)
I am not sure how exactly Vscode debugger works, but adonis serve --debug
is the command that starts the debugger to be used with Chrome devtools.
After doing a quick google search I believe you need to do following.
- Inside
.vscode/launch.json
file, setprogram: ${workspaceFolder}/server.js
- Do not start the server using
adonis serve
, since Vscode will start it for you once it will require the server.js file.
from adonis-cli.
I don't remember excaxtly but i had some problems also when i launched the server from VsCode so i prefer to attach.
I will try to run server via vscode again, maybe i can recall what the problem was.
Here is my full vscode and im using the attach method.
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/server.js",
"stopOnEntry": false,
"args": [],
"cwd": "${workspaceRoot}",
"preLaunchTask": null,
"runtimeExecutable": null,
"runtimeArgs": [
"--nolazy",
"--harmony"
],
"env": {
"NODE_ENV": "development"
},
"console": "internalConsole",
"sourceMaps": false
},
{
"name": "Attach",
"type": "node",
"request": "attach",
"port": 9229,
"address": "localhost",
"restart": true,
"sourceMaps": false,
"localRoot": "${workspaceRoot}",
"remoteRoot": null
},
{
"name": "Attach to Process",
"type": "node",
"request": "attach",
"processId": "${command:PickProcess}",
"port": 9229,
"sourceMaps": false
}
]
}
from adonis-cli.
The issue is not actionable. If you want you can ask for more help on forum, since there are bunch of Vscode users using Adonis https://forum.adonisjs.com/
from adonis-cli.
Related Issues (20)
- adonis make:model model
- fs.pathExists is not a function HOT 10
- Ability to log commands and get exit code HOT 5
- Allow watch override ignore directories HOT 2
- Npm install fails when creating new project HOT 6
- Watching files for changes not working on special characters path HOT 1
- CommandNotFoundException HOT 4
- Adonis Cannot find module HOT 9
- Adonis command doesn't recognize my project in Staging environment HOT 4
- Link to Documentation Installing in README.md is broken HOT 1
- adonis serve --dev fails without error information if fs.inotify.max_user_watches=8192 HOT 3
- Could not install Adonis using NPM HOT 6
- Cannot read property 'major' of null HOT 2
- deprecated warnings HOT 1
- [Question] - Custom Generators
- Fix broken anchor links and improve contribution guidelines HOT 1
- not watching for file change on wsl
- Adonis Cli fails to install HOT 1
- Clarify difference between `adonis serve` with and without --dev flag HOT 1
- repl breaks on Node v15.0.0 TypeError: Cannot set property 'history' of undefined
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adonis-cli.