The debugger goes into the source error code (for example, using F7), but I want to restore the normal working mode when the Delphi base DCUs (library) are only compiled into my code and the sources are not used for debugging.
For example, if an error occurs in my program, the debugger goes to Controls.pas, in TControl.Click. The usual case (immediately after installation) is for Delphi to step over these methods.
Should I recompile Controls.pas without debugging information? If so, how?
I am expanding this topic with additional information for a better understanding:
We use Delphi6 Prof. that the problem is with Mouse (System Error Code 5). Therefore, we want to recompile Controls.pas to replace the mouse receiver code. Then:
- I created a folder for it: "c: \ D \ Common \ Delphi_Patches \ Delphi_6 \"
- I put the original controls in it.
- I changed Controls.pas, replaced position getter code.
- I set the path to the Delphi library, set the first folder to the folder "c: \ D \ Common \ Delphi_Patches \ Delphi_6 \"
Using these steps, I can compile the source code with user-friendly code.
Good, but then Delphi switches to Controls.pas every time on F7 and on any exceptions - this is a very "thing for farmers."
Regardless of the fact that I deleted "Controls.pas" from the library path, then the debugger will find the source "Controls.pas" for it and open it ... :-(
We do not use "Use Debug DCU-s" in any codes.
" " , , Delphi Controls.pas...
, Delphi "Controls.pas" , dcu...
, .