Tag Archives: watch window

You can track Out of Scope Objects by assigning an Object ID during debugging in Visual Studio

“Make Object ID”, you can consider it as an another hidden features of Visual Studio that can give you lot of flexibility during debugging.  When we set “Make Object ID” for an object,  we are informing the Debugger to keep track of that object no matter it’s within scope or out of scope for the current context.  You… Read More »

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 also the keyboard… Read More »

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, where we can… Read More »

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)