Windbg is appended to the process. (debugging error)

Source: Internet
Author: User

1: Set up. EXE is extremely PDB, which is placed in the same directory or a directory that can be found by windbg.

2: Enable windbg and F5 to run.
3: When a breakpoint or process exception occurs, control is returned to windbg,

1 ):
Click the callstack command in the toolbar,

Open the Stack window and you can see the function call stack,

2)
Click the source command in the new callstack window to display the location and row number of the source file corresponding to the function in the stack. (If your source file is placed here, it will be directly transferred to your source file .)

The callstack window also provides a lot of information for viewing. For example, funcinfo can see the call Convention stdcall for this function, frame Nums can see the frame number. sourceargs, and the original parameters.

 

4: click "local". The exception is the field variable.

 

See:
Windows ApplicationsProgramDebugging Policy (1)
Http://dev.csdn.net/Develop/article/21/21915.shtm
Windows application debugging Policy (2)
...

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.