Add debug script to set inspect flags (#15967)

* Add debug script to set inspect flags

* remove no-base-path flag
This commit is contained in:
Jonathan Budzenski 2018-01-10 17:12:20 -06:00 committed by GitHub
parent edaaadb790
commit 4a06fd9e0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

@ -235,6 +235,9 @@ Once that's done, just run:
yarn test && yarn build --skip-os-packages
```
### Debugging Server Code
`yarn debug` will start the server with Node's inspect and debug-brk flags. Kibana's development mode will start three processes. Chrome's developer tools can be configured to connect to all three under the connection tab.
### Debugging Unit Tests
The standard `yarn test` task runs several sub tasks and can take several minutes to complete, making debugging failures pretty painful. In order to ease the pain specialized tasks provide alternate methods for running the tests.

View file

@ -54,6 +54,7 @@
"build": "grunt build",
"release": "grunt release",
"start": "node scripts/kibana --dev",
"debug": "node --nolazy --inspect --debug-brk scripts/kibana --dev",
"precommit": "node scripts/precommit_hook",
"karma": "karma start",
"elasticsearch": "grunt esvm:dev:keepalive",