From 79e57ddceca16915f87f1be24beac9736cecb546 Mon Sep 17 00:00:00 2001 From: davidnth <63354482+davidnth@users.noreply.github.com> Date: Sun, 8 Aug 2021 14:59:21 +1000 Subject: [PATCH 1/2] Update README.md An explanation of debugging in visual studio code. --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index d0442a3..3dca05a 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,9 @@ Each exercise includes 3 files: a markdown file with a description of the task, The first exercise, `helloWorld`, will walk you through the process in-depth. +## Debugging +To debug functions, you can run the tests in the visual code studio debugger terminal (open this by clicking the "Run and Debug" icon on the left or pressing ctrl + shift + D, then clicking JavaScript Debug Terminal). In your code you are able to set breakpoints as you would in the Chrome devtools debugger. You can run `npm test exerciseName.spec.js` to then execute your code up until your breakpoint and step through your code as necessary. + ## Solutions Solutions for these exercises can be found in this repo on the 'solutions' branch. From 702d983059d9317749741a231abdc35a45267c61 Mon Sep 17 00:00:00 2001 From: davidnth <63354482+davidnth@users.noreply.github.com> Date: Sun, 8 Aug 2021 15:14:12 +1000 Subject: [PATCH 2/2] Update README.md Co-authored-by: Tatiana --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3dca05a..ee10520 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Each exercise includes 3 files: a markdown file with a description of the task, The first exercise, `helloWorld`, will walk you through the process in-depth. ## Debugging -To debug functions, you can run the tests in the visual code studio debugger terminal (open this by clicking the "Run and Debug" icon on the left or pressing ctrl + shift + D, then clicking JavaScript Debug Terminal). In your code you are able to set breakpoints as you would in the Chrome devtools debugger. You can run `npm test exerciseName.spec.js` to then execute your code up until your breakpoint and step through your code as necessary. +To debug functions, you can run the tests in the Visual Studio Code debugger terminal. You can open this by clicking the "Run and Debug" icon on the left or pressing `ctrl + shift + D`, then clicking JavaScript Debug Terminal. You will be able to set breakpoints as you would in the Chrome DevTools debugger. You can run `npm test exerciseName.spec.js` to then execute your code up until your breakpoint and step through your code as necessary. **NOTE**: To take advantage of the debugger, you **MUST** run the script in the debugger terminal, not the bash or zsh terminal. ## Solutions