-
Notifications
You must be signed in to change notification settings - Fork 0
Debugging
Biswajit Sundara edited this page May 21, 2023
·
1 revision
- Install live server in vscode
- Put the javascript code in lets say
demo.js - Then create an html file let's say
index.html - under body call the file
<script src="./demo.js"> - Launch the index.html file with live server
- Open the url in chrome and go to source tab
- Double click on the first line to add a break point
- Refresh the page, the execution will pause at the first line
- Then under debugger window go to
scope -> Global - There we can check the value for variables, functions
a, getName