Skip to content

Commit

Permalink
docs(bazel): Update VSCode config (angular#27733)
Browse files Browse the repository at this point in the history
What was there didn't work at all, and resulted in an error `Error processing "attach": Error: Both localRoot and remoteRoot must be specified`
PR Close angular#27733
  • Loading branch information
benlesh authored and IgorMinar committed Dec 19, 2018
1 parent 23518c7 commit 060e548
Showing 1 changed file with 7 additions and 23 deletions.
30 changes: 7 additions & 23 deletions docs/BAZEL.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,28 +88,12 @@ First time setup:
- Add the following to the `configurations` array:

```json
{
"name": "Attach (inspect)",
"type": "node",
"request": "attach",
"port": 9229,
"address": "localhost",
"restart": false,
"sourceMaps": true,
"localRoot": "${workspaceRoot}",
"remoteRoot": null
},
{
"name": "Attach (no-sm,inspect)",
"type": "node",
"request": "attach",
"port": 9229,
"address": "localhost",
"restart": false,
"sourceMaps": false,
"localRoot": "${workspaceRoot}",
"remoteRoot": null
},
{
"type": "node",
"request": "attach",
"name": "Attach to Remote",
"port": 9229,
}
```

**Setting breakpoints directly in your code files may not work in VSCode**. This is because the files you're actually debugging are built files that exist in a `./private/...` folder.
Expand All @@ -118,7 +102,7 @@ and launch the bazel corresponding test (`yarn bazel test <target> --config=debu

Bazel will wait on a connection. Go to the debug view (by clicking on the sidebar or
Apple+Shift+D on Mac) and click on the green play icon next to the configuration name
(ie `Attach (inspect)`).
(ie `Attach to Remote`).

### Debugging a Karma Test

Expand Down

0 comments on commit 060e548

Please sign in to comment.