From 4774a1abff6eca4f20af3ca10e51a10e18061668 Mon Sep 17 00:00:00 2001 From: Ben Lesh Date: Tue, 18 Dec 2018 10:07:08 -0800 Subject: [PATCH] docs(bazel): Update VSCode config (#27733) 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 #27733 --- docs/BAZEL.md | 30 +++++++----------------------- 1 file changed, 7 insertions(+), 23 deletions(-) diff --git a/docs/BAZEL.md b/docs/BAZEL.md index cb79f58f8a..730ba66e88 100644 --- a/docs/BAZEL.md +++ b/docs/BAZEL.md @@ -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. @@ -118,7 +102,7 @@ and launch the bazel corresponding test (`yarn bazel test --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