开发者

Delphi - Reverse Lookup ' who includes this unit'

I am debugging a large application distributed over many units. I ran into a compilation error in a low level unit and do not have the slightest idea in which part of the application this unit is referenced. Is there a way to use RAD studio 2010's IDE to create some kind of include-graph?

As most of the units used are not part of the project and spread over quite a branchy source tree, i can not simply use the 'find in files' option.

I am currently traversing through my tree using a search-in-files-utility, but this is cumbersome.

Do you know of amore elegant way? Development is in Embercader开发者_如何学运维o RAD studio 2010, windows XP 32.


Have a look at the Modelmaker's unit dependeny analyzer. This may give you more than you want and its free.


I use very simple idea: I rename unit name from .pas to .pas_ and then build project. Compiler will report error in unit that uses the unit you are looking for. Simple and work very well but I will not name it "elegant" :(

I think Delphi instead of:

[Pascal Fatal Error] unit2.pas(31): F2063 Could not compile used unit 'unit2'

should report:

[Pascal Fatal Error] unit2.pas(31): F2063 Could not compile unit 'unit2' used by 'unit1'

(maybe some of Delphi maintainers read it: it will make our lives easier)


Peganza's Pascal Analyzer has an "Uses Report". Maybe this can help you.

Edit: You might also want to check out Icarus from the same company. It's free (as in beer :-)) (credits to Uwe).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜