When I debug .net code, how can I know when the garbage collector runs?
I do not wish to control when the garbage collector runs. I only wish to be able to know when it is running. I have some code that is running out of resources. I know that the resources are not being used; I want to know when the GC is running to free them.
Oh, and the resources I have in mind are connections from a Sql connection pool, not memory :-)