Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delphi2010-IDE keeps stoping on CPU debug window

I keep getting the CPU-debug window in D2010 IDE, i noticed this appears on some Breakepoints, some others doesnt cause this effect. Can't explain when exactly this happends or which Breakpoints cause this but it seems like when the debugger can't reach a breackpoint on code it stops on the beginaddress of the method, and it gets in an endless loop so even removing the Breakpoint doesnt help, only solution is break debugging, remove breakpoint and restart again. I had the same issue with D7 but more often.

Can anybody explain this? is it a bug or a configuration issue? how helpfull are cpu debug info? at the moment i cant really make any use of them, can anybody recommend some tools, articles on how to use this information usfully.

Thank you.

like image 436
CloudyMarble Avatar asked Feb 25 '23 14:02

CloudyMarble


2 Answers

A workaround for this problem is to do a full CLEAN of your developer 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

like image 110
Warren P Avatar answered Feb 27 '23 04:02

Warren P


This is usually caused by having debug information in DCUs (third party or Delphi's own VCL), but not having the source available on the browsing path.

Make sure you don't have "Use Debug DCUs" checked in Project->Options-Linker. You also may want to open the source for any third-party components you use (the packages), change them to not use debug information, and rebuild them as well. You can always re-compile if you find a bug in them and need to trace into the source.

One additional thing to make sure of is that you don't have the $(BDS)\Lib\Debug value set in the Library or Browsing paths (Project->Options->Compiler in D2010); this will prevent the debug DCUs from being picked up when stepping through the code. (Set it to $(BDS)\Lib instead.)

like image 43
Ken White Avatar answered Feb 27 '23 03:02

Ken White