Forum Discussion
KishoreRavi
Feb 09, 2021Copper Contributor
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.
- Hi,
I'd suggest trying Microsoft Doc's Q&A site which is for .NET topics you're talking about.
https://docs.microsoft.com/en-us/answers/topics/dotnet-runtime.html
you can see all the available Q&A sites for .NET here:
https://docs.microsoft.com/en-us/answers/products/dotnet- KishoreRaviCopper Contributor
Thanks for info HotCakeX
- You're welcome!