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:
parent
edaaadb790
commit
4a06fd9e0d
|
@ -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.
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue