Because I resigned from the company, the development environment that was previously set up in the company is alsoGame OverNow,
Because the environment was built a long time ago, I still have a lot to remember,
There are still a lot of things to be aware of, so here is a summary of the environment building,
It will be convenient to use it later.
Wdk debugging environment setup:
Install wdk:
First, installWdkYou can download the package directly on the official website, and then install the package.OKNow,
Note that in installation, it is best to choose to install all, and it is best to install inCDisk.
Set the debugging environment:
This is actually a good practice.WindbgTo debug the virtual machine or use the serial port.WindbgTo debug anotherPC.
If your machine is still good, you can start severalVisual Studio +Virtual machines are unnecessary.2PlatformPC.
However, if your machine isn't very good, like my own house's antiques a few years ago, it's just like running a virtual machine,
It is best to prepare2PlatformPCOtherwise, debugging will make people crazy. It is also worth mentioning that, in the case of Virtual Machine debugging,
Essentially, a virtual machine uses a named pipe to virtualize a serial port. Therefore, the speed and actual use of the two virtual machinesPCDebugging through serial port is different.
Windbg debugging virtual machine:
Set virtual machines:
First, installXPAnd then modifyXPUnder the root directory of the systemBoot. iniFile
(This file is hidden by default and its attribute is read-only, so you need to remove the read-only attribute first ).
For example, the originalIniThe file is:
You needIniModify the file as follows:
The last sentence added above indicates that we have loadedWindowsSpecify the kernel debug portCom4And set the baud rate115200.
Set it hereBoot. iniFile, we need to setXPNow,
In fact, virtual machines use named pipes like ours.PCA serial port is virtualized.
For detailed settings, see the illustration:
(Note that the following com_4 corresponds to the settings in the boot. ini file)
Set windbg:
You can setWindbgTo ensureWindbgAble to debug virtual machines.
You can set the following startup parametersWindbgDebug serial port\. \ PIPE \ com_4.
C: \ winddk \ debuggers \ windbg.exe-B-K COM: Port =\\\ PIPE \ com_4, baud = 115200, pipe
Debug another PC using windbg:
To useWindbgTo debug anotherPCAt least prepare2PlatformPCOh, huh.
TheWdkAndWindbgBecome a host, and the otherPCIt is called a client.
Set the client:
Also modifyBoot. iniFile. This step is exactly the same as above.
For exampleBoot. iniFile to use the debug portCom_4For debugging.
Set windbg:
C: \ winddk \ debuggers \ windbg.exe-B-K COM: Port =\\. \ COM1, baud = 115200
SVN environment construction:
Download:
From Www.visualsvn.com And Http://tortoisesvn.net DownloadSVNServerProgramAnd client programs.
InstallSVNServer programsVisualsvn Server:
InstallSVN ServerI:
InstallSVN ServerII:
InstallSVN ServerIII:
Installation CompleteVisualsvn ServerThen you need to create a repository.
Create a project namedKeyboardCheck the following check box and noteURLIsHttps: // Xiaozhen-PC/SVN/keyboard
Create another user
InstallSVNClient ProgramTortoisesvn:
Select default for all options during installation. Restart the machine after installation.
SVN example for project use:
After installationTortoisesvnThen, we can create a project. The project used here isKeyboardProject.
On my desktop, there isKeyboardTo import the projectSVNServer.
Upload the project to the server
Because the project has been uploadedSVNServer, so the local desktopKeyboardThe project can be deleted. Delete it here.
Then we go to anotherPCOn the serverKeyboardCheck out or sign in the project.
First, you need to go to another computerBInstalled aboveSVNClient ProgramTortoisesvn.
Then on the computerBTo create a folder on the desktop or in other locations.Keyboard.
Summary:
The above section describes how to useWdkTo debug the virtual machine or debug anotherPCSome settings,
It also introduces how to use it in driver development.SVNFor development,SVNEnvironment collocation and basic use,
Next articleArticleIt is estimated that we will introduce the environment collocation class, because we wantVisual StudioYou have to set up a lot of things to develop the driver in.
Copyright,HuanWelcome to reprint, but please note: Reprinted fromZachary. Xiaozhen-the sky of dreams