Skip to content
Fixed up CLI commands authored by Kim Carter's avatar Kim Carter
......@@ -167,14 +167,33 @@ Discussed [here](https://glebbahmutov.com/blog/debugging-mocha-using-inspector/)
### CLI
~/Source/purpleteam `npm run debug`
From the `purpleteam` root directory you can run the following command:
```shell
npm run debug
```
Or if you need to override a NODE_ENV environment variable to say `local` then run:
```shell
env NODE_ENV="local" npm run debug
```
Or if you actually want to exercise say the `test` command, run the following command:
```shell
env NODE_ENV="local" npm run debug -- test
```
In Chromium, open `chrome://inspect` and click "inspect", which will drop you into the first loaded script.
### Tests
~/Source/purpleteam `npm run test:debug`
From the `purpleteam` root directory you can run the following command:
```shell
npm run test:debug
```
Or if you need to override a NODE_ENV environment variable to say `local` then run:
```shell
env NODE_ENV="local" npm run test:debug
```
In Chromium, open `chrome://inspect` and click "inspect", which will drop you into the first loaded script.
# Full system run
Leaving `docker stats` running in a terminal is often useful to see which containers are running and how much work they're doing.
......
......