Step 6 ensure that windbg successfully debugs. net

Source: Internet
Author: User

Address: http://blogs.msdn.com/ B /dougste/archive/2011/10/31/tips-for-successful-net-debugging-with-windbg.aspx


1. The windbg version is the same. During analysis and dump, The windbg version is the same, and it must be a complete memory file. Run with. Dump/Ma c: \ dump. dmp
2. Check that the CLR versions are consistent. Check whether mscorwks. dll (#2.0) or CLR. dll (#4.0) is correct. Use lm VM mscorwks or Lm vm clr check to check whether the output content contains # m c or the like. If yes, the file does not match.
3. loaded the correct extension command. Check whether the loaded extension is psscor2.dll (#2.0) psscor4.dll (#4.0 ). Use the command! Threads checks whether the extension works properly. Psscor2: http://www.microsoft.com/download/en/details.aspx? Id = 1073
Psscor4: http://www.microsoft.com/download/en/details.aspx? Id = 21255

4. If Step 3 fails, check whether the same DAC (Data Access Component) as the CLR version is correct. Run mscordacwks.dllw.beibeibeito the same directory of windbg.exe and name it mscordacwks_xpp_xpp_2.0.50727.vvvv.dll on the dump machine. For more information, see "failed ".
To load data access DLL, 0x80004005 "-or-what is mscordacwks. dll? "
5. Check the CLR version. Use lm VM mscorwks (#2.0) or Lm vm clr (#4.0) to confirm the CLR version. CLR 2.0 version history: http://blogs.msdn.com/ B /dougste/archive/2007/09/06/version-history-of-the-clr-2-0.aspx CLR 4.0 version history: http://blogs.msdn.com/ B /dougste/archive/2011/09/30/version-history-of-the-clr-4-0.aspx
6. A very powerful extension command for debugging and hosting code. Sosex: Step 6 of benchmark is the prerequisite for "ensuring successful debugging of. Net in windb". Each step is very important. Remember, remember! 2. Regarding the CLR version list, foreign Daniel is a good summary for convenient search and should be a useful tool for. Net debugging. 3. In addition to SOS. DLL for hosting and debugging, there are two Swiss Army knives available: psscor2/sosex

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.