How to use the. pdb file

Source: Internet
Author: User

1.demo1: Generate My.dll, my.pdb, my.lib files with dll_01.

2.demo2: Use dll_01 DLL in dll_01_app_02.

Steps:

1.vs2008 Open the DLL_01_APP_02 project, configure the path of the. h file, My.dll, and my.lib so that the functions inside the my.dll can be called.

2. Place the generated my.pdb file into the dll_01_app_02 current directory.

3. Copy the. cpp source file dll_01 used to generate the My.dll to the dll_01_app_02 current directory.

4. Symbols, debugging, menu bar Tools, options, add the path to the my.pdb.

5. Breakpoint debugging, F11 can enter the My.dll function in the source code.

With the PDB file debugging, as long as there is a source code file (. cpp) to generate the DLL, you can now use the DLL's project break point, F11 into the source debugging.

In this way, the bug is more convenient to tune up, others no longer need to reconfigure, compile the project that generated the DLL.

How to use the. pdb file

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.