Skip to content

Commit 9bb613a

Browse files
committed
docs: documents debugging
1 parent 60e6f87 commit 9bb613a

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

docs/README_contributors.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,31 @@ Once you have completed the previous steps to `npm link` the local copy of `angu
116116

117117
5. You can remove the link later by running `npm unlink`
118118

119+
6. We can debug the deployment with VSCode within `your-angular-project`, too.
120+
Go to `your-angular-project/node_modules/angular-cli-ghpages/deploy/actions.js` and place a breakpoint there.
121+
Now you can debug with the following `launch.json` file:
122+
123+
```json
124+
{
125+
"version": "0.2.0",
126+
"configurations": [
127+
{
128+
"type": "node",
129+
"request": "launch",
130+
"name": "Debug ng deploy",
131+
"skipFiles": ["<node_internals>/**"],
132+
"program": "${workspaceFolder}/node_modules/@angular/cli/bin/ng",
133+
"cwd": "${workspaceFolder}",
134+
"sourceMaps": true,
135+
"args": ["deploy", "--no-build"]
136+
}
137+
]
138+
}
139+
```
140+
141+
````
142+
143+
119144
### 4. Testing
120145
121146
Testing is done with [Jest](https://jestjs.io/).
@@ -124,7 +149,7 @@ To run the tests:
124149
```sh
125150
cd angular-cli-ghpages/src
126151
npm test
127-
```
152+
````
128153

129154
## Testing the standalone CLI
130155

0 commit comments

Comments
 (0)