简体   繁体   English

如何在C ++ Builder XE中调试dll?

[英]How to debug dll in C++ Builder XE?

My core project which is a standard windows application is being developed under C++ Builder XE. 我的核心项目是标准Windows应用程序,正在C ++ Builder XE下开发。 This project is using dll file written in older version of development environment, namely C++ Builder 6. Application is crashing somewhere inside dll so i decided to debug dll. 该项目正在使用在较旧版本的开发环境(即C ++ Builder 6)中编写的dll文件。应用程序在dll内某处崩溃,因此我决定调试dll。 What should I set to see source code of dll? 我应该设置什么才能查看dll的源代码? All I can see is assembler code. 我所看到的只是汇编代码。 It seems like debugger don't see source code directory. 似乎调试器看不到源代码目录。 I have copied debug symbols file *.tds in the same directory as *.dll it seems it doesnt nothing. 我已将调试符号文件* .tds复制到与* .dll相同的目录中,似乎什么也没做。

XE cannot debug into the source code of a BCB6 DLL. XE无法调试到BCB6 DLL的源代码。 You need to use the BCB6 IDE for that instead. 您需要为此使用BCB6 IDE。 Load the DLL project into BCB6 and set your XE app as the DLL's Host Application in the "Run > Parameters" dialog. 将DLL项目加载到BCB6中,然后在“运行>参数”对话框中将XE应用程序设置为DLL的主机应用程序。 You can then run the project from the BCB6 IDE, which will start the Host app and attach the debugger to the DLL when it is loaded into memory, then you can debug the DLL's source code. 然后,您可以从BCB6 IDE运行项目,该项目将启动Host应用程序,并将调试器加载到DLL时将其附加到DLL,然后可以调试DLL的源代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM