Forum Discussion

KishoreRavi's avatar
KishoreRavi
Copper Contributor
Feb 09, 2021

Enable Logging for mscorlib/system/runtime/serialization/formatters/binary/binaryobjectreader.cs

Hi,

I want to switch on logging of file mscorlib/system/runtime/serialization/formatters/binary/binaryobjectreader.cs

So that I could understand the deserialization behavior. 

#if _DEBUG                        
            SerTrace.Log( this, "ParseMember ",objectPr.PRobjectId," ",pr.PRname);
            SerTrace.Log( this, "ParseMember objectPr ",objectPr.Trace());
            SerTrace.Log( this, "ParseMember pr ",pr.Trace());#endif

 Please let me know, how can I enable these traces when deserialization is performed. So that in the attached screenshot, I could figure out what is the reason for more function calls on the right side image of the attachment.

Resources