Problem with setting Browsing Path in Delphi option page

天涯浪子 提交于 2019-12-03 09:30:15

问题


I have a problem with setting Browsing Path in Delphi 2009:

When I install a new component, I add DCU path to Delphi's Library Path, and source path to Delphi's Browsing Path. The application compiles fine, but holding Ctrl and clicking on any of the unit names for that component does not open the source file!

It seems the only way to make it work is to add source path to Library Path, but this means I have to compile all the units belonging to third-party components every time I build my project!

This problem does not exist for Delphi's standard units, or even JCL and JVCL units which are installed by JCL\JVCL installer, and their source paths are added to Browsing Path.

Is this a bug, or it is me doing something wrong?

Regards


回答1:


I was struggling with this problem for a long time. Changing REFERENCEINFO in package settings from "none" to "definitions only" did the trick. Hope this will help you also.




回答2:


Are any of these units listed in the .dpr ? Units there with a wrong path can cause pretty funky behaviour.




回答3:


Setting "Symbol Reference Info" to "Reference Info" does indeed fix the issue with Browsing Path.

But at least for Delphi XE the change has to be made in "Build Configuration -> Base" for it to work.




回答4:


I would ensure the dcu's were compiled with debugging turned on. If this is a third party component and the source is provided with it this is usually the case but not always.



来源:https://stackoverflow.com/questions/782341/problem-with-setting-browsing-path-in-delphi-option-page

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!