How come there is nothing in "Variables", "Watch" and "Call Stack" when I debug a file in Visual Studio Code?

Issue

Here is the image that shows the problem.

enter image description here

I am using Windows 11, python 3.10.

Solution

You need to be stopped on a breakpoint in order for those panels to populate with data, otherwise, they will be empty. In your screenshot, you have a breakpoint, but you are not stopped on it. Additionally, watch won’t contain anything unless you define some sort of expression.

See image below – I am stopped on a breakpoint, and the panel contains my locals. I don’t have any watches, so that’s empty still.

breakpoint

Answered By – Timothy G.

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published