Using Virtual PC for Windows kernel debugging

Source: Internet
Author: User
Tags command line

The following is an example of Virtual PC 2004, which describes the detailed process of using a Virtual PC for Windows kernel debugging.

1, download and install Virtual PC 2004, Conlio.

2, start Virutal PC Console (console), create a new Virtual PC, installation Wizard prompts configure the hard disk, memory and other parameters.

3, install the operating system on the Virtual PC you just created, which should be the version of Windows you want to debug. For example, if you want to debug a problem with your driver on Windows Server 2003, install Windows Server 2003. Let's take Windows 2000 for example.

4, configure the Virtual PC serial port, select Windows 2000 in the Avatar console, then click the Settings button to eject the Setup dialog, and then select COM1 in the list on the left (as shown below).

On the right, select the Named pipe option, which uses named pipes to simulate the serial port, and then enter the full name of the pipe: File://./pipe/com_1,com_1 can be other names, but the previous section should remain unchanged.

5, start Windows 2000 in the Virtual PC, and then go to the Command Line window and execute the following command to add debug Options to the Startup menu:

C:

cd\

Attrib-r-H

Edit Boot.ini

The last line is then copied and the debug option is added to the following state:

6, select Restart Windows 2000 in the Virtual PC, and when the boot menu appears, press the arrow keys to stop the automatic timing and wait here.

7, on the host (debugger) ready to start WinDbg, consider each input command-line parameters too cumbersome, so it is recommended to create a batch file of the following content, and put it in the same location as the WinDbg.exe directory.

Windbg-k com:pipe,port=\\.\pipe\com_1

8, run the batch file so that it also enters the wait state:

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.