How can I debug an internal error in the .NET Runtime?

后端 未结 5 466
滥情空心
滥情空心 2021-01-30 01:05

I am trying to debug some work that processes large files. The code itself works, but there are sporadic errors reported from the .NET Runtime itself. For context, the

5条回答
  •  萌比男神i
    2021-01-30 01:11

    Tools->Debugging->General->Enable .Net Framework Debugging

    +

    Tools->IntelliTace-> IntelliTaceEbents And Call Information

    +

    Tools->IntelliTace-> Set StorIntelliTace Recordings in this directory

    and choose a directory

    should allow you to step INTO .net code and trace every single function call. I tried it on a small sample project and it works

    after each debug session it suppose to create a recording of the debug session. it the set directory even if CLR dies if im not mistaken

    this should allow you to get to the extact call before CLR collapsed.

提交回复
热议问题