Disable debug info VS2010

Hi,

I’ve been looking for a setting to disable debug info in the output window
Once in a while info like this is passing:

GC: 3msec 22680 bytes used, 41700 bytes available
Type 0F (STRING ): 876 bytes
Type 11 (CLASS ): 1800 bytes
Type 12 (VALUETYPE ): 48 bytes
Type 13 (SZARRAY ): 1956 bytes
Type 15 (FREEBLOCK ): 41700 bytes
Type 17 (ASSEMBLY ): 12984 bytes
Type 18 (WEAKCLASS ): 48 bytes
Type 19 (REFLECTION ): 48 bytes
etc.etc.

How to disable this?? because it’s interfering with the debug info I want to see.

Best regards,

Hullie

You have to insert the following line of code

Debug.EnableGCMessages(false);

BR

Marc

Hi Marc,

Thanks a lot. That solved it.
I was looking in the wrong place, in Visual studio itself, instead of adding something to the code.

Best regards,
Hullie

Don’t you think that this one could be in a good place in a “Programming FAQ” or “Programming : tips & tricks ?”

Yes, that would be a good idea.
I did use the search button, but the search didn’t return any results.

Best regards,
Hullie

I think the forum is not apropiate for this kind of FAQ.

As hullie said , he use the search button, but no result. :frowning: :frowning: :frowning:

So there must be some kind of tags for search like on fezzer.com

Or the wiki will be also an option. When I have some questions I ask wikipedia :stuck_out_tongue:

Cypher, I didn’t mention any specific location for this :wink:

It should be visible, though, so you don’t have to search for the FAQ to then search for your answer :smiley:

Ohh , I thought you want open a FAQ section here in the forum :wall:

Ok, let’s start a section in the wiki :whistle: