Why does the CPU window always appear when trying to debug my project after a rebuild in Delphi 2010

Posted by James on Stack Overflow See other posts from Stack Overflow or by James
Published on 2010-05-26T11:54:47Z Indexed on 2010/05/26 12:21 UTC
Read the original article Hit count: 202

Hi,

Whenever I rebuild my application and try to step into a break-point the CPU window always appears. From what I understand the CPU window appears when DCU does not match up with the source file, however, in my case the DCU's are defintely being re-compiled and there are no old ones lying around or anything like that.

The strange thing here is if I close down the application and re-open the project, place the breakpoint and run it works fine. I can even modify files and just press F9 to run the project and it works fine....it only seems to be when I rebuild the project (via IDE Project menu or the project context menu) that this CPU window never breaks into the source (even though it can find it!).

I also noticed in the callstack a unit called Generics is always the top of the stack, never the unit my break point is in, this is no way related to where my break point is.

Any ideas?

© Stack Overflow or respective owner

Related posts about delphi

Related posts about debugging