Some precautions for windbg local win7 debugging!

Source: Internet
Author: User

Use windbg for kernel debugging and do a few things

1. Run bcdedit-Debug on to enable debugging, and restart to take effect.

2. Download the symbol package to the http://www.microsoft.com/whdc/devtools/debugging/symbolpkg.mspx

Windows 7 RC x86 retail symbols, All Versions

3. Add the Environment Variable _ nt_symbol_path as the installation path of the symbol package.

Run windbg as an administrator to debug the kernel 7.

 

// The specific process is as follows:

1. in VMware, add SerialPort (\. PIPE \ com_1). Refer to the configuration in XP;
2. boot.ini is missing in win7. use the bcdedit.exe command line to configure it (the only difference from the past );
3. Copy the current configuration;
Bcdedit/copy {current}/D "Windows 7 debug"
4. Record the guid of the newly added identifier;
Bcdedit
5. Added debugging functions for newly added startup items;
Bcdedit/debug {previously queried guid} on
6. Modify debugging settings;
Bcdedit/dbgsettings serial debugport: 1 baudrate: 115200
7. Add a windbg shortcut to the outer system and modify its command behavior (note that the installation path must correspond to your local computer ).
"C: \ Program Files \ debugging tools for Windows (x86) \ windbg.exe"-B-K COM: Port =\\\ PIPE \ com_1, baud = 115200, pipe

Remember: cmd.exe must run with the Administrator permission. Other settings are the same as debugging the XP system!

In addition, the following blog post is more detailed and illustrated in red.

Http://yexin218.iteye.com/blog/545187


Problems:ProgramAfter the INT 3 breakpoint is broken, the normal program context is not displayed, and the windbg is always in the busy state ......

Solution:Run bcdedit-Debug on to enable debugging. the restart takes effect!

 

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.