Dela via


CRT Debugging Techniques

This topic applies to:

Edition

Visual Basic

C#

C++

Web Developer

Express

Topic does not apply Topic does not apply

Native only

Topic does not apply

Standard

Topic does not apply Topic does not apply

Native only

Topic does not apply

Pro and Team

Topic does not apply Topic does not apply

Native only

Topic does not apply

Table legend:

Topic applies

Applies

Topic does not apply

Does not apply

Topic applies but command hidden by default

Command or commands hidden by default.

If you are debugging a program that uses the C run-time library, these debugging techniques may be useful.

In This Section

  • CRT Debug Library Use
    Describes the debugging support provided by the C Run-Time Library and provides instructions for accessing the tools.

  • Macros for Reporting
    Provides information on the _RPTn and _RPTFn macros (defined in CRTDBG.H), which replace the use of printf statements for debugging.

  • Debug Versions of Heap Allocation Functions
    Discusses the special Debug versions of the heap allocation functions, including: how the CRT maps calls, the benefits of calling them explicitly, how to avoid conversion, tracking the separate types of allocations in client blocks, and the results of not defining _DEBUG.

  • The CRT Debug Heap
    Provides links to memory management and the debug heap, types of blocks on the debug heap, using the debug heap, heap state reporting functions, and tracking heap allocation requests.

  • Debug Hook Function Writing
    Lists links to client block hook functions, allocation hook functions, allocation hooks and CRT memory allocations, and report hook functions.