How do I stop the debugger from stepping into Delphi-supplied units?

偶尔善良 提交于 2019-12-01 05:21:19

I think that you need to Shift+Ctrl+F11 (tools/options) then in Compiler, uncheck "Use debug DCU"...Then if an exception occurs it wont break into the RTL or VCL sources.

Since you are compiling your own version of a Delphi unit, you can disable debug info in that unit. Add {$D-} to the source code of the unit(s) in question.

As I see the solution is:

  1. create a project the uses only the new Controls.pas.

  2. unset the "Debug information" option in compiler options.

  3. build dcu

  4. put the dcu into a library folder

  5. hide the new Controls.pas from this library folders.

Wite this trick the I cannot "step into" controls.pas.

Regards: dd

I had this same problem with Delphi XE8.

You can untick the "Project >> Option >> Compiling >> Use debug .dcus" and it will continue tracing into System unit and so on.

I found that the best way to stop this is to open your Application.dproj file - which is in XML. In it, you can change the settings as follows:

<PropertyGroup Condition="'$(Cfg_1_Win32)'!=''">
    <DCC_AssertionsAtRuntime>false</DCC_AssertionsAtRuntime>  <--- note false
    <DCC_DebugDCUs>false</DCC_DebugDCUs>
    <VerInfo_Locale>1033</VerInfo_Locale>
    <VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo>
    <DCC_RemoteDebug>false</DCC_RemoteDebug>
</PropertyGroup>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!