Tag Archives: watch window



Did you know– You can Drag-Drop & Copy-Paste code inside Watch Window in Visual Studio?

Watch Windows is one of most powerful and commonly used debugging tool inside Visual Studio.  This tool is commonly used to explore the objects, values, properties and other aspect during debugging.  To inspect any object, while debugging we generally right click on the code block and select “Add to Watch” to explore or we can […]

Debugging Lambda Expression in Visual Studio 2015 – Watch Windows, Immediate Windows and also in DataTips

Debugging  Lambda expression is one of the coolest feature of Visual Studio 2015 and that’s bring lot of productivity among developers during debugging and release lot of pain. Using lambda expression is pretty often in code, mostly when we writes lots of LINQ statements. Priory to Visual Studio 2015, there was no direct and easy way, […]

Get Object Generation using Watch Window

If you are dealing with any objects in Watch window and you want to check the current generation for that Object you can easily get that by calling GC.getGeneration(objectName). If you are creating any Object ID in Watch window let say (#1), you can also view the generation of the newly created object ID GC.getGeneration(#id)