Delphi: why breakpoints from time to time are not usable (green highlighted line on IDE)?

前端 未结 20 1234
甜味超标
甜味超标 2020-11-29 08:25

From time to time I lose breakpoint functionality in Delphi.

I thought this to be a Delphi 2009 issue but now I have also it in Delphi XE.

In Delphi 2009 by

20条回答
  •  野性不改
    2020-11-29 08:51

    Try remote debugging to your local PC.

    Why it works: (source)

    When you debug Delphi projects locally, RAD Studio does not use your RSM debug file because the compiler holds the symbol tables in memory. However, when you debug Delphi projects remotely, you must generate an RSM debug file that contains those symbol tables; otherwise, RAD Studio does not stop at your breakpoints.

    Of course, you must first configure your project's "Linking" option "Map file" to "Detailed" to generate the *.rsm file. See Overview of Remote Debugging for how to get started.

提交回复
热议问题