Delphi2010-IDE continues to stop on CPU debug window

I keep getting the CPU debug window in the D2010 IDE, I noticed that this appears on some Breakepoints sites, some others do not affect this effect. It is impossible to explain exactly when this happens or what Breakpoints cause it, but it seems that when the debugger cannot reach the bracket by code, it stops at the startaddress of the method and it enters an endless loop, so even deleting a breakpoint does not help, only a solution breaks debugging, removes a breakpoint and restarts again. I had the same problem with D7, but more often.

Can someone explain this? Is this a bug or a configuration problem? How useful is cpu debugging data? at the moment I can’t use them, can someone recommend some tools, articles on how to use this information.

Thanks.

+4
source share
2 answers

The workaround for this problem is to make a full CLEAN of the developer's working folders. Delete all DCU and DCP files, and then rebuild. This happened to me a lot in Delphi 2010 and seems to be fixed in Delphi XE

+3
source

This is usually caused by the fact that it has debugging information in DCU (third-party or Delphi native VCL), but does not have a source available in the viewing path.

Make sure you do not have “Use Debug DCU” in Project->Options-Linker . You can also open the source for any third-party components that you use (packages), change them so as not to use debugging information, and also rebuild them. You can always recompile if you find an error in them, and you need to trace it in the source.

Another thing to be sure of is that you do not have the value $(BDS)\Lib\Debug set in the library or in the view path ( Project->Options->Compiler in D2010); this will prevent debugging DCUs from being picked up when passing through the code. (Instead, set $(BDS)\Lib instead.)

+4
source

Source: https://habr.com/ru/post/1347095/


All Articles