Add debugging instructions to backend README

Signed-off-by: Tim Hansen <timbonicus@gmail.com>
This commit is contained in:
Tim Hansen
2021-07-08 12:42:00 -06:00
parent df12cc25aa
commit 86e4920ee0
+15
View File
@@ -39,6 +39,21 @@ You can also, instead of using dummy values for a huge number of environment var
The backend starts up on port 7000 per default.
### Debugging
The backend is a node process that can be inspected to allow breakpoints and live debugging. To enable this, pass the `--inspect` flag to [backend:dev](https://backstage.io/docs/cli/commands#backenddev).
To debug the backend in [Visual Studio Code](https://code.visualstudio.com/):
- Enable Auto Attach (⌘ + Shift + P > Toggle Auto Attach > Only With Flag)
- Open a VSCode terminal (Control + `)
- Run the backend from the VSCode terminal:
```
$ cd packages/backend
$ yarn backstage-cli backend:dev --inspect
```
## Populating The Catalog
If you want to use the catalog functionality, you need to add so called