So, this blog is to shed light on a simple yet efficient way on how to debug JavaScript code in VSCode; and the best part is, it can be done without any extension!
Let’s get started. All you need is to do is have the latest version of vscode installed. You can get that from the official link here: Download VSCode
Prerequisites!
- You obviously should have a browser installed and preferably made as default
- You should have LiveServer Extension installed in VSCode. Or if your project already has support for deployment on a server (like Angular, React, or NodeJS) then that’s great too.
I’ve written some dummy JavaScript code for testing purposes. It’s a simple registration form with an email and password fields. You can easily find such templates on google.
What you want to do here is simply click on the Debug button on the left bar as circled in the below picture or just hit the shortcut keys (Ctrl + Shift + D).
Now you have to set up the debugger so that it can open in your default browser, let’s say chrome. So, after you’ve opened the debugger side panel, you would click on the first button “Run and Debug”, which will open a dropdown window in the center, listing all the possible browsers among others where you can start debugging. Select your desired option, I’ll be selecting Chrome as shown in the picture below:
When you select a browser, it will open up the page shown below, and the only thing you need to do here is to change the port number on which your project is going to deploy at. If you’re using LiveServer Extension the port is going to be 5500. So, change it accordingly.
But before launching, make sure to add some break points at specific lines, like so.
As you can see, the debug panel on the left will show you all the variables and their values and you even get the Next, Step-Into, Step-Out options on the top bar that’s shown in the above image.
That wraps it up! Hope you guys liked this article and it helped you out with what you were looking for. If not then please leave a comment as to what you would have wanted more in this article.
Have a great one!
Recent Posts
- Казино Официальный Сайт Играть в Онлайн Казино Pin Up.2324
- Embrace the Spin Elevate Your Play with Captivating online casino slots & Unforgettable Jackpots.
- Elevate Your Play – Explore a Universe of Thrills with online casino slots and Claim Lucrative Rewar
- Hospitalier et attractif, le monde d’alexander casino vous attend
- Elevate Your Play with 30+ Payment Options & €1200 Bonus – Find Your Fortune at sky crown casino log
Recent Comments
Archives
- May 2026
- October 2025
- August 2025
- June 2025
- October 2024
- September 2024
- August 2024
- June 2023
- May 2023
- March 2023
- December 2022
- November 2022
- October 2022
- September 2022
- August 2022
- July 2022
- June 2022
- May 2022
- April 2022
- February 2022
- January 2022
- December 2021
- November 2021
- October 2021
- September 2021
- August 2021
- July 2021
Categories
- Angular
- AWS
- Backend Development
- Big Data
- Blog
- Casino
- Cloud
- Database
- Deployment
- DevOps
- Docker
- Frontend Development
- GitHub
- Google Cloud Platform
- Installations
- Java
- JavaScript
- Linux
- MySQL
- Networking
- News
- NodeJS
- Online casino
- Operating System
- Post
- Python
- Python Flask
- Report
- Security
- Server
- SpringBoot
- Subdomain
- TypeScript
- Uncategorized
- VSCode
- Webhosting
- WordPress
Search
Recent Post
Казино Официальный Сайт Играть в Онлайн Казино
- 19 May, 2026
- 1 min read
Embrace the Spin Elevate Your Play with
- 19 May, 2026
- 5 min read
Elevate Your Play – Explore a Universe
- 19 May, 2026
- 6 min read