WinDbg调试.net2.0和.net4.0程序有所不同,因为.net4.0使用新版本的CLR。例如:

mscoree.dll 变为 mscoree.dll 和 mscoreei.dll,

mscorwks.dll 变为 clr.dll,

mscorjit.dll 变为 clrjit.dll。

因此,在.net2.0加载mscorjit.dll时断点:sxe ld:mscorjit(卸载是sxe ud:mscorjit),

在.net4.0加载clrjit.dll时断点:sxe ld:clrjit(卸载是sxe ud:clrjit),

.net2.0加载sos: .loadby sos mscorwks,

.net4.0加载sos: .loadby sos clr。

 

相关文章:

  • 2021-11-20
  • 2021-08-10
  • 2021-10-24
  • 2022-02-02
  • 2021-06-15
  • 2021-12-17
  • 2021-07-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-17
  • 2021-08-16
  • 2022-12-23
相关资源
相似解决方案