Add command to debug the server (#533)

Co-authored-by: Florent FAYOLLE <florent.fayolle@beta.gouv.fr>
pull/549/head
Florent 10 months ago committed by GitHub
parent d280e796a0
commit bf15a14dd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -101,6 +101,16 @@ Lost on what you can do to help? If you are new to Grist, you may just pick one
https://github.com/gristlabs/grist-core/labels/good%20first%20issue
## Debug the server
You can debug the NodeJS application using this command:
```bash
$ yarn start:debug
```
And start using your nodejs debugger client (like the Chrome Devtools). See https://nodejs.org/en/docs/guides/debugging-getting-started#inspector-clients
## Run tests
You may run the tests using one of these commands:

@ -7,6 +7,7 @@
"repository": "git://github.com/gristlabs/grist-core.git",
"scripts": {
"start": "sandbox/watch.sh",
"start:debug": "NODE_INSPECT=1 sandbox/watch.sh",
"install:python": "buildtools/prepare_python.sh",
"install:python2": "buildtools/prepare_python2.sh",
"install:python3": "buildtools/prepare_python3.sh",

@ -17,6 +17,6 @@ fi
tsc --build -w --preserveWatchOutput $PROJECT &
catw app/client/*.css app/client/*/*.css -o static/bundle.css -v & webpack --config $WEBPACK_CONFIG --mode development --watch &
NODE_PATH=_build:_build/stubs:_build/ext nodemon --delay 1 -w _build/app/server -w _build/app/common _build/stubs/app/server/server.js &
NODE_PATH=_build:_build/stubs:_build/ext nodemon ${NODE_INSPECT:+--inspect} --delay 1 -w _build/app/server -w _build/app/common _build/stubs/app/server/server.js &
wait

Loading…
Cancel
Save