Skip to content
This repository was archived by the owner on Jan 26, 2024. It is now read-only.

Commit 78375ac

Browse files
committed
docs: documents debugging
1 parent 10defdd commit 78375ac

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docs/README_contributors.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,28 @@ Once you have completed the previous steps to `npm link` the local copy of `@ang
114114

115115
5. You can remove the link later by running `npm unlink`
116116

117+
6. We can debug the deployment with VSCode within `your-angular-project`, too.
118+
Go to `your-angular-project/node_modules/@angular-schule/ngx-deploy-starter/deploy/actions.js` and place a breakpoint there.
119+
Now you can debug with the following `launch.json` file:
120+
121+
```json
122+
{
123+
"version": "0.2.0",
124+
"configurations": [
125+
{
126+
"type": "node",
127+
"request": "launch",
128+
"name": "Debug ng deploy",
129+
"skipFiles": ["<node_internals>/**"],
130+
"program": "${workspaceFolder}/node_modules/@angular/cli/bin/ng",
131+
"cwd": "${workspaceFolder}",
132+
"sourceMaps": true,
133+
"args": ["deploy", "--no-build"]
134+
}
135+
]
136+
}
137+
```
138+
117139
### 4. Testing
118140

119141
Testing is done with [Jest](https://jestjs.io/).

0 commit comments

Comments
 (0)