'Delphi XE7 Debugger Always Stops on CPU Window

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:

Please offer suggestions regarding how to get the standard debugging functionality.



Solution 1:[1]

  1. Try add source files to the debugger source path in project options under debugger.

  2. Try disable runtime packages and add sources from runtime packages to project.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Zoe stands with Ukraine