> $D: Debug Information Switch


 $D:  Debug Information Switch

Enables or disables the generation of debug information.

   Syntax:        {$D+} or {$D-}
   Default:       {$D+}
   Type:          Global
   Menu Command:  Options|Compiler|Debug Information


Debug information consists of a line-number table for each procedure. The table maps object-code addresses into source-text line numbers.

When Debug Information is On for a given program or unit, you can use Borland's stand-alone or integrated debuggers to single-step and set breakpoints in that module.

Then, when a run-time error occurs in a unit or program compiled with {$D+}, Turbor Pascal can automatically go to the statement that caused the error. See Search|Find Error for information about this automatic error tracking.

The Options|Linker|Map File radio buttons produce complete line information for a given module only if you've compiled that module in the $D+ state.

For units, the debug information is recorded in the .TPW, .TPP, or .TPU file, along with the unit's object code.

Debug information increases the size of .TPW files and takes up additional room when you compile programs that use the unit, but it does not affect the size or speed of the executable program.

The Debug Information switch is usually used with the Local Symbols switch.

NOTE: If you want to use Turbo Debugger for Windows to debug your program, turn on Options|Linker|Debug Info in Exe.or set these options: Compile|Destination to Disk Options|Debugger, Debugging to Standalone

 К началу страницы 
Тэги: $D

Код для вставки: :: :: :: ГОСТ ::
Поделиться: //

Хостинг предоставлен компанией "Веб Сервис Центр" при поддержке компании "ДокЛаб"