Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8632273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:19:44+00:00 2026-06-12T09:19:44+00:00

The debugger steps into the source code on errors (like with F7 ), but

  • 0

The debugger steps into the source code on errors (like with F7), but I want to restore the normal working mode where the Delphi basic DCUs (the library) are only compiled into my code, and the sources are not used in debugging.

For example, on an error in my program, the debugger is stepping into Controls.pas, into TControl.Click. The normal case (right after installation) is for Delphi to step over these methods.

Should I recompile Controls.pas without debug information? If so, how?


I extending this theme with additional information to better understanding:

We use Delphi6 Prof. what have problem with Mouse (System Error Code 5).
So we want to recompile to Controls.pas to replace the Mouse Position getter code.
Then:

  1. I created a folder for it: “c:\D\Common\Delphi_Patches\Delphi_6\”
  2. I put the original Controls.pas into it.
  3. I modified the Controls.pas, replaced the position getter code.
  4. I set the Delphi’s Library path, set the first folder to “c:\D\Common\Delphi_Patches\Delphi_6\”

With these steps I can compiled the source with mouse-safe code.

Ok, but then the Delphi everytime steps into Controls.pas on F7, and on any exceptions – this is very “angermaker” thing.

No matter that I removed the “Controls.pas” from the Library path – then the debugger is finding the original “Controls.pas” for it, and opens it… 🙁

We don’t use “Use Debug DCU-s” in any codes.

I tried to remove “Debug Information” from compiler options, but it is no matter, the Delphi is opens the original Controls.pas…

So I search the way to Delphi don’t step into “Controls.pas”, but use my dcu…

I hope this provide better context to understand the problem.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T09:19:45+00:00Added an answer on June 12, 2026 at 9:19 am

    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

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My debugger keep jumping into debugging the IL instead of jumping to debug code
My debugger is not working, I'm putting a breakpoint, but in run, time visual
Until now my Visual Studio 2008 debugger gracefully stepped into Qt library code when
Using the debugger in Netbeans 6.1, I'd like to step into a method of
Using the VS2010 debugger for managed code is it possible to trigger the finalizer
I'm currently experiencing a problem with 'hot code replace' not working on Eclipse Galileo
How to see Qt Source code while coding by Qt Creator ? when I
I have a source file in my project, which has more than 65,536 code
I'm searching for a way to block the Visual Studio debugger to step into
Is there a way to exclude boost source code (or any other) from debuging?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.