From c5806dd95914f30617f8eb4561a9e6bffc2c4e5e Mon Sep 17 00:00:00 2001 From: Anthony Sneed Date: Tue, 13 Jun 2017 16:52:56 -0500 Subject: [PATCH 1/2] Updated README to remove "after the app is shown." --- Angular-CLI/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Angular-CLI/README.md b/Angular-CLI/README.md index 62d0910..7ddb2dc 100644 --- a/Angular-CLI/README.md +++ b/Angular-CLI/README.md @@ -80,9 +80,9 @@ Then click on the *settings* icon to configure a launch.json file, selecting **C ng serve ``` -- After the app is shown in the browser, go to the Debug view, select the 'Launch Chrome with ng serve' configuration, then press F5 or click the green button to start debugging. +- Go to the Debug view, select the **'Launch Chrome with ng serve'** configuration, then press F5 or click the green button. -- Refresh the browser and you should hit the breakpoint. +- The app will be shown in a browser, but in order to hit the breakpoint you'll need to *refresh* the browser. ![angular-breakpoint](https://user-images.githubusercontent.com/2836367/27004337-40bca8d8-4dcd-11e7-837e-b7602a3a622a.png) @@ -96,7 +96,7 @@ Then click on the *settings* icon to configure a launch.json file, selecting **C ng test ``` -- After the test run, go to the Debug view, select the 'Launch Chrome with ng test' configuration, then press F5 or click the green button to start debugging. +- After the test run, go to the Debug view, select the **'Launch Chrome with ng test'** configuration, then press F5 or click the green button. - When a browser opens with the test list, click the link for the test in which you placed the breakpoint. You should then hit the breakpoint. From 7fda49dd6b9e5045d1294899a1dddc428cb59b1f Mon Sep 17 00:00:00 2001 From: Anthony Sneed Date: Tue, 13 Jun 2017 16:57:40 -0500 Subject: [PATCH 2/2] Removed sourceMaps, trace, userDataDir from launch.json. --- Angular-CLI/.vscode/launch.json | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Angular-CLI/.vscode/launch.json b/Angular-CLI/.vscode/launch.json index faca37b..17b20a8 100644 --- a/Angular-CLI/.vscode/launch.json +++ b/Angular-CLI/.vscode/launch.json @@ -6,20 +6,14 @@ "request": "launch", "name": "Launch Chrome with ng serve", "url": "http://localhost:4200/#", - "webRoot": "${workspaceRoot}", - "sourceMaps": true, - "trace": true, - "userDataDir": "${workspaceRoot}/.vscode/chrome" + "webRoot": "${workspaceRoot}" }, { "type": "chrome", "request": "launch", "name": "Launch Chrome with ng test", "url": "http://localhost:9876/debug.html", - "webRoot": "${workspaceRoot}", - "sourceMaps": true, - "trace": true, - "userDataDir": "${workspaceRoot}/.vscode/chrome" + "webRoot": "${workspaceRoot}" } ] }