I know that Visual Studio support for C++/CLI is terrible. But I am getting a weird issue when doing a Quick watch. The variable which I am watching is in the scope and it has value. But VS says, the variable is not in the scope. See the image
Quick watch problem in C==/CLI http://www.freeimagehosting.net/uploads/95471b8cb4.png
It would be great if someone can suggest a workaround. Or is this a bug with VS?
Select the variable a in the code. Select Debug > QuickWatch, press Shift+F9, or right-click and select QuickWatch.
Open and explore the 'QuickWatch' window in Visual Studio That way we can quickly evaluate or change expressions. The 'QuickWatch' window has three columns: 'Name', 'Value', and 'Type'. They show the expression currently evaluated, its value, and type.
To display the Immediate window, open a project for editing, and then choose Debug > Windows > Immediate or press Ctrl+Alt+I. You can also enter Debug. Immediate in the Command window. The Immediate window supports IntelliSense.
I actually made it work by these steps, not sure why this should be the solution though.
Is this in Debug or Release? Release builds, even with PDB support, are notorious for poor watches.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With