In one of my projects, I can't get breakpoints to work as expected.
The problem is that the CPU window opens when the breakpoint is reached. The Event Log correctly indicates the source line number with the breakpoint and the name of the file with the breakpoint indicated in the Event log matches the name and path of the source file open in the editor (the one where I placed the breakpoint).
However, when I try to inspect variables or view watches, I am told that the variable is undeclared. After the first breakpoint is reached, I can't set any additional breakpoints (the breakpoint is displayed as invalid -- a red dot with an X), even if it is the next line after the breakpoint (with a green arrow displayed). The Event Log indicates that the module has debug info.
I have tried the following:
- deleting the DPROJ file and letting Delphi recreate it
- "Cleaning the project"
- verifying that the debugging settings for the project are consistent with those for other projects that do debug correctly
- deleted all the dcus for the project and verified that Building the project put them in the expected location (which is the same folder as the EXE).
- I tried the solutions here: Delphi2010-IDE keeps stoping on CPU debug window
- I have verified that Debug Information and Local Symbols are enabled.
- I tried the suggestions here: Delphi: why breakpoints from time to time are not usable (green highlighted line on IDE)?
Please offer suggestions regarding how to get the standard debugging functionality.