来自:xianjun, 时间:2001-10-24 11:28:00, ID:688746
第二个问题, 在那个Pas的Interface下面加五个字母: {$D-}
=======================
本来想早说,却被xianjun强了,不过如果你在Pas文件后面不加上{$D+}
的话,以后文件出错,都不会跳到错误的地方了,所以
{$D-}//是关闭Use Debug DCUs
你的程序
{$D+}//是打开Use Debug DCUs的
$D的意思是
Type Switch
Syntax {$D+} or {$D-}
{$DEBUGINFO ON} or {$DEBUGINFO OFF}
Default {$D+}
{$DEBUGINFO ON}
Scope Global
Remarks
The $D directive enables or disables the generation of debug information. This information consists of a line-number table for each procedure, which maps object-code addresses into source text line numbers.
For units, the debug information is recorded in the unit file along with the unit's object code. Debug information increases the size of unit file and takes up additional memory when compiling programs that use the unit, but it does not affect the size or speed of the executable program.
When a program or unit is compiled in the {$D+} state, Delphi's integrated debugger lets you single-step and set breakpoints in that module.
The Include debug info (Project|Options|Linker) and Map file (Project|Options|Linker) options produce complete line information for a given module only if you've compiled that module in the {$D+} state.
The $D switch is usually used in conjunction with the $L switch, which enables and disables the generation of local symbol information for debugging. See also "The generate Turbo Debugger debug info (/V) option" and "Symbol cross-reference information."