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

2021-02-10T05:33:17.257+00:00

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.

66326-image.png

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,484 questions
{count} votes