Search code examples
delphidelphi-7

"Search for Usages" for Delphi 7?


Delphi XE+ has a "Search for Usages" option. Is there a similar option in Delphi 7 to find function/procedure callers? I either do a plain text search or place a breakpoint and see who the caller was in the Call Stack during run time. Both are time consuming and very inefficient.

Opening the app in Delphi XE and using "Search for Usages" doesn't work. The app doesn't compile.


Solution

  • Not ideal but alternatively you could

    • Rename the method
    • Compile
    • Check the compiler errors to find all callers (those that can be resolved at compile time).

    As mentioned by dummzeug

    Renaming the method is the simplest way to find all uses. Unfortunately you have to rename all uses in turn to find the next use. And afterwards revert the changes.