Update README.md

An explanation of debugging in visual studio code.
This commit is contained in:
davidnth 2021-08-08 14:59:21 +10:00 committed by GitHub
parent 4cdc0d8543
commit 79e57ddcec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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. 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
Solutions for these exercises can be found in this repo on the 'solutions' branch. Solutions for these exercises can be found in this repo on the 'solutions' branch.