Get Object Generation using Watch Window

By | February 25, 2011

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).

Gc1

Gc2

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)

2 thoughts on “Get Object Generation using Watch Window

  1. Pingback: SHRAVAN Weblog » 14 Useful .NET Debugging Tips & Tricks in Visual Studio

  2. Pingback: 10 Effective Debugging Tips for .NET Developer

Comments are closed.