Remark summary WinDbg 32-bit version and 64-bit version selection

Source: Internet
Author: User

The brothers who used to Vsiual studio might think that all debuggers should be like it for a preconceived reason, but when you install Debugging Tools for Windows, you will find two series of tools A range of 32-bit tools and a range of 64-bit tools. This is confusing because you don't have to think about 32-bit or 64-bit at all when we install Microsoft Visual Studio.

If you are using one of the WINDBG debug toolset (WINDBG, KD, CDB, or NTSD), you have to make your own choices. To choose the right debugging tool, you need to know the following two points:

1. The processor type of your debug host.

2. Your debug host is running a 32-bit version of Windows or a 64-bit version.

PS: The computer that runs the debugger we become the debug host, the computer that is debugged we call the target machine.

Debug Host runs a 32-bit version of Windows

If your debug host is running a 32-bit version of Windows, use a 32-bit debug tool (whether the target machine being debugged at this time is x86-based or x64-based).

X64-based Debug host running 64-bit Windows if your debug host is using X64-based's processor and running 64-bit Windows, refer to the following rules:
    • If you are analyzing a dump file, you can use the 32-bit or 64-bit debug toolset. (Whether the dump file is user-state or kernel-state, or whether the dump file is caught on a x86-based or x64-based platform.) )

    • If you are doing real-time kernel debugging, you can use either the 32-bit or 64-bit debug toolset (whether the target machine being debugged at this point is x86-based or x64-based)

    • If you are doing real-time user-state debugging, and the debugger is on the same machine, you need a 64-bit debug toolset for both 64-bit code and 32-bit WOW64 code. Use the. Effmach command to set the debugger's mode.

    • If you are debugging 32-bit user-state code in real-time, but the code runs on a separate target machine, use the 32-bit debug toolset.

    • Summarize

      Only in the case of real-time user-state debugging, and the debugger is also on the same 64-bit machine, the 64-bit debug toolset must be used!

Remark summary WinDbg 32-bit version and 64-bit version selection

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.