How to Use the trace macro of VC

Source: Internet
Author: User

Trace macro for VCProgramDebugging is very useful and has functions similar to printf. This macro only appears in the debug version of the program. When release is used, the macro will be completely sent, this helps you reduce the number of release operations.CodeQuantity.

The format is as follows:

Trace ("ddddddddddd ");

Trace ("Wewe % d", 333 );

There are also trace0, trace1, trace2... Corresponding to 0, 1, 2, respectively .. Parameters

Trace information is output to the output window of the vc ide environment (which window Indicates the project error prompt you compile), but it is limited to running your debug version program in the VC.

Trace information can also be captured using debugview. In this case, you cannot run your program in the vc ide environment, but run the build debug version program separately, in this case, you can see the output in debugvie format in the debugview window.

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.