Delphi Debug only my source

Possible duplicate:
How to stop the debugger from entering Delphi?

I have the following problem: when I run the application, the debugger gets to the Delphi VCL source. I want it to run only through the code that I wrote.

Example:

temp := nil; // Here is breakpoint, after that I wanna go line-by-line, so I'm hitting F7 while (Head <> nil) do begin if (Head^.Next = nil) then break; Temp := Head^.Next; dispose(Head); // <- here debugger goes into [*] end; if (Temp <> nil) then dispose(Temp); 

 // [*] procedure _Dispose(P: Pointer; TypeInfo: Pointer); {$IFDEF PUREPASCAL} begin _Finalize(P, TypeInfo); FreeMem(P); end; {$ELSE} asm { -> EAX Pointer to object to be disposed } { EDX Pointer to type info } {$IFDEF ALIGN_STACK} SUB ESP, 8 {$ENDIF ALIGN_STACK} PUSH EAX CALL _Finalize POP EAX {$IFDEF ALIGN_STACK} SUB ESP, 4 {$ENDIF ALIGN_STACK} CALL _FreeMem {$IFDEF ALIGN_STACK} ADD ESP, 12 {$ENDIF ALIGN_STACK} end; {$ENDIF !PUREPASCAL} 

I read this one and it didn’t help me. How to exclude delphi sources to debug only my code?

+4
source share
1 answer

Look at the menu item Project->Options . Go to the "Compiler Options" section and the option "Use debug DCU" should be set. Make sure it is not installed, and you should stop tracking in standard library sources.

+9
source

All Articles