ercreative.blogg.se

Visual studio code debugger size of variables
Visual studio code debugger size of variables







visual studio code debugger size of variables

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

visual studio code debugger size of variables

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.

visual studio code debugger size of variables

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:

  • Add the file name to the ‘ launch.json’.
  • Here I’ll include some instructions on how to set it up and how I usually use it. I used to use, and there’s still a soft spot in my heart for, debugging in my applications web-browser console, don’t get me wrong, but VS’s Debugger is a gift from the programming Gods. No more trying to keep track of things in my head like, ‘var x’ when ‘x’ is about to change a hundred times because it’s inside of a for loop that takes ever-changing information or part of a reduce function that is doing straight-up magic inside of that function. It allows me to slow it down and literally understand every single line of code and what it’s doing.

    visual studio code debugger size of variables

    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.









    Visual studio code debugger size of variables