How do you disable the CPU window in Delphi 7

2019-03-24 19:39发布

问题:

When stepping a program in Delphi 7, the CPU window sometimes pops up and then steps through that instructions. I find this an annoyance as I wish to only step Pascal Code.

Does anyone know how to disable this CPU pop-up?

I would not be sorry if this window never ever shows.

It did not happen on Delphi 5 which was my previous IDE that I used for Delphi. I do use the Step-Over button mostly and only step-into when wanting to get into detail of a used (pascal) unit.

回答1:

Delphi does not, by default, step into the CPU window. So the answer to your question is not that it can not be done. Maybe the question should be: What did I do that causes this.

EDIT:
From the comments I understand that it happens when you press pause to break in the debugger.
It is not strange that it stops on the exact place where it was executing when you hit pause.
This could very well be in some Windows code for which you do not have the source.
By choosing Run -> Run to Next Source Line or Shift-F7 your program will execute a bit further until it hits some code for which it does have source code.

This is the answer to your problem, but remember that you could have breaked in a spot where you never reach a next source line.



回答2:

In RAD studio 2009, you can got to Tools->Options->Debugger Options->Codegear Debuggers. In General, select Ignore non-user breakpoints.



回答3:

it seems that i resolved it: added to the registry: HKCU\Software\Borland|Delphi\7.0\Debugging: EnableCPU (stringvalue):0



回答4:

Modify the following registry key:

HKEY_CURRENT_USER/software/Borland/Delphi/6.0/Debugging/Integrated Debugging = 0


回答5:

You fall into the CPU-Window when there are no Debug-Informations for the current Unit.

Try to enable the Debug-DCU's (in Project/Options.../Compiler). If you haven't checked the other debug options, activate them also.