How to debug (step into) BinaryFormatter.Deserialize()?

前端 未结 3 1182
长发绾君心
长发绾君心 2020-12-10 17:34

My app tries to deserialize data sent by client and it fails with the following error:

Exception thrown: \'System.Runtime.Serialization.Serializatio

3条回答
  •  盖世英雄少女心
    2020-12-10 17:59

    Microsoft doesn't upload the source of every mscorlib.dll update, this is why you only get public PDBs without any source data. But there is a Visual Studio Addon from Redgate's Reflector where you can decompile 3rd party DLLs and step through them in the VS debugger.

    DotPeek from Jetbrains also supports PDB generation and hosting of a Symbol server to allow debugging.

    Maybe this helps you to debug your issue.

提交回复
热议问题