在组件安装过程中调试软件包 [英] Debugging a package during component installation
问题描述
我需要在Embarcadero RAD Studio XE5中构建为BCB6(Borland C ++ Builder 6)制成的旧组件。项目是CPP项目,组件代码包含在* .PAS-文件中。
该项目包含6个包:
I need to build old components made for BCB6 (Borland C++ Builder 6) in Embarcadero RAD Studio XE5. Projects are CPP- projects, and the component code is contained in the *.PAS - files. The project contain 6 packages:
- 三个包设计时间
- 三个包运行时
首先,我构建了运行时包。之后,我开始构建和安装使用程序包运行时的程序包设计时间。而且一个设计时软件包在安装过程中出现了问题:
First I build packages runtime. After that I start building and installing the packages design time that use packages runtime. And one design time package has a problem during installation:
我找到了一个运行时导致此问题的程序包。我的问题是如何找到并解决以下错误?毕竟,在安装软件包后,我无法启动调试器,看不到堆栈跟踪,什么也没有。有什么选择?谢谢。
I found a runtime package that causes this problem. My question is how do I find and resolve the following error? After all, when the package is installed, I cannot start the debugger, see the stack trace, nothing at all. What are the options? Thanks.
推荐答案
为此,您需要在调试器中运行IDE的第二个实例:
For that you need to run a second instance of the IDE in the debugger:
- 卸载软件包
- 使用调试信息编译所有软件包
- 加载运行时软件包的项目导致问题
- 运行中->参数将主机应用程序设置为$(BDS)\Bin\bds.exe
- 按带调试的运行方式
- 这将启动第二个实例IDE的。您可能不得不忽略它在内部引发(和处理)的一些异常。
- 在第二个实例中,加载设计时程序包,该程序包会加载导致问题的运行时程序包
- 希望您现在会看到会发生什么情况
- Uninstall the packages
- Compile all packages with debug information
- Load the project of the runtime package that causes the problem
- In Run -> Parameters Set the Host application to $(BDS)\Bin\bds.exe
- Press run with debug
- This will start a second instance of the IDE. You might have to ignore some exceptions that it internally raises (and handles).
- In that second instance, load the design time package which loads the runtime package that causes the problem
- Hopefully you will now see what happens
这篇关于在组件安装过程中调试软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!