

As my function runs through this for loop I can actually see the variables changing and what the updated variables are.

I set whatever variables I want to keep track of set inside of this ‘WATCH’ box. While my function is executing I can see exactly what is happening all the time.

Here there is a section in the sidebar that is called “WATCH” where I have some variables set. So in VS code, on the sidebar, you have an icon that looks like this:

Using VS codes Debugger allows me to do something I seriously love doing. Like, I’ve seriously at times wanted to run away screaming. Being given a working solution that you can’t figure it out is almost unbearable. Having a problem you can't figure out is painful. IT ALLOWS ME TO DISSECT PEOPLES CODE WHO ARE MORE EXPERIENCED THAN ME! MAN OH MAN! This is an amazing functionality that I honestly use this for all the time. Someone out there agrees with me! Also, I’d like to point one of the other uses, besides fixing my mistakes, that I love VS code’s Debugger tool. On my path to writing the seamless, perfect, beautiful, fully functional, flawless code I usually write(definitely sarcasm in there somewhere), I often find myself staring at my screen wondering why my code is returning ‘undefined’ or ‘NaN’ or ‘abcd’ instead of “dcba” or honestly any other multitude of things. Even the most seasoned programmers can often have code that they think will do one thing but often does another. As most programmers know, or have come to find out, writing perfect code the first time is about as probable as running into bigfoot.
