Methods for debugging DLL engineering in VS2010 C + +

Source: Internet
Author: User

1, in the "solution Explorer" to find the DLL project to debug, right-click, select Set as Startup Project, set the DLL to debug startup project, then select the DLL project, right-click, select Properties, Open the Property page Settings page;

2, in the Properties page, select the Configuration Properties drop-down menu, and then select Debugging;

3, in the debugging page, in the first row Debugger to launch drop-down menu, if it is local debugging to select Regional Windows Debugger, remote debugging to choose the remotely Windows Debugger;

4. On the Debugging page, select the drop-down menu in the command, locate the application that references the DLL, enter $ (targetfilename) in command arguments, or select it yourself from the drop-down box, and then after this string Input DLL file exported function name:

If I have two export functions: Createplugobj () and Releaseplugobj (), it should be written as:

$ (targetfilename) createplugobj; Releaseplugobj

5. In the debugging page, working directory drop-down menu, select the current working directory, such as Debug.

So set a breakpoint in the code snippet to be debugged by the DLL project and start debugging to jump to the breakpoint in the DLL

Methods for debugging DLL engineering in VS2010 C + +

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.