How to see variable type while debugging C++ in visual studio code?

Viewed 1166

While debugging C++ code in Visual Studio Code, is it possible to see type of VARIABLES ?

VARIABLES or WATCH view only show variable name with variable value. Is there an option to show also variable type ?

2 Answers

I use GDB from MinGW to compile and debug C codes.

While in debug console, use command -exec ptype variable_name to show types of variable.

Related