C251 User's Guide

DEBUG Compiler Directive

Abbreviation

DB

Arguments

None.

Default

No Debug information is generated.

µVision

Options — Output — Debug Information.

Description

The DEBUG directive instructs the compiler to include debugging information in the object file. By default, debugging information is excluded from the generated object file.

Debug information is necessary for the symbolic testing of programs. It contains global and local variable definitions and their addresses, function names and addresses, and line number information for source code. Debug information contained in each object module remains valid through the Link/Locate process and may be used by the µVision debugger or by an emulator.

Example
C251 SAMPLE.C DEBUG

#pragma db