zoukankan      html  css  js  c++  java
  • delphi-search-path-vs-library-path-vs-browsing-path

    https://stackoverflow.com/questions/812042/delphi-search-path-vs-library-path-vs-browsing-path
     
    Delphi 有两种搜索路径:编译搜索路径和Debugger搜索路径。
    1.编译搜索路径:
    编译器在编译时使用此路径搜索源文件或预编译的Dcu文件。
    编译搜索路径又分为两种:
    ①Project - Project Options - Directories/Conditionals - Search path:
    只对当前工程起作用。
    ②Tools - Enviroment Options - Library - Library path:
    对IDE下的所有项目起作用。
    2.Debugger搜索路径:
    Debug搜索路径也有两种:
    ①Project - Project Options - Directories/Conditionals - Debug Source path:
    仅对项目起作用。
    ②Tools - Enviroment Options - Library - Browsing path:
    对IDE下的所有项目起作用。
    如果源文件不在 Library path下时,debugger在breaking/stepping into 源文件时,就会到Debug Source path下查找文件,再则到Browsing Path下查找文件。
    例如:你使用了某个第三方组件,你可以把dcu文件放在library path下。编译器会使用这些Dcu来编译工程。这样做的好处时,每次编译工程时,不用编译控件。
    但只使用Dcu文件的话,你就无法debug第三方组件。
    此时,你可以把组件的源文件放在 browsing path下,这样,你就可以调试组件。
    VCL控件就是这样放置的。在library path下存放了 (BSD)lib,而browsingpath下存放了(BDS)SOURCEWIN32…


  • 相关阅读:
    添加linux alias
    vs2019 switch语句快捷键列出枚举 及常用快捷键
    generic 泛型使用
    华为云 安装centos8.2
    linux 安装redis,mysql,netcore
    react按需加载
    工具类注册基本写法
    vue项目使用深拷贝
    react+less+antd 复习搭建(一)
    python 1 cmd进入工作
  • 原文地址:https://www.cnblogs.com/kinglandsoft/p/10239833.html
Copyright © 2011-2022 走看看