我们试图解开100个单位的毛球,去掉一些.
如果有工具可以向我们展示明确使用单位X的单位,那将会很有帮助.
Penganza似乎没有这样做的报告.(虽然它有很多其他有用的报告.)
任何人都可以建议一个工具或策略这样做,除了隐藏单位x,然后反复击中F9 ...
有一个大型项目,我需要查看每个文件在其USES子句中引用的单元的层次结构.
恩.
Project Source (program.dpk)
HelperUnit Forms ThirdPartyUnit
MyUtils MyConsts MyDownload TPShellShock TPWhatever
Run Code Online (Sandbox Code Playgroud)
我怎么能看到这种依赖树呢?我记得在一个较新的Delphi版本中有一些这样的功能,但我不记得它叫什么.它可能是一个插件.
关于如何做到这一点的任何提示都会很棒.我开始编写我自己的程序来做这件事,但我已经浪费了3个小时,我仍然在处理pas文件的解析器.
I had an issue where a file kept deleting on startup and I couldn't track down the code responsible. I wound up adding Vcl.Dialogs to all the units and creating an initialization section that looked like this:
initialization
begin
ShowMessage('Inside [Unit Name Here]');
end;
Run Code Online (Sandbox Code Playgroud)
This was quite a pain. Is there an easy way to generate a list of forms/units in the order in which they fire off?
UPDATE: 2019-08-01 (Helpful MAP links)
Here are two links that …