Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是一名从事 Delphi 的开发人员。在我的项目中,我添加了一个用 VC++ 构建的 DLL 文件。我需要调试 DLL 文件来解决一些问题。
那么使用 Delphi 代码调试 DLL 文件需要遵循哪些步骤?
您不能从 Delphi 内部调试 DLL,除非您不介意单步执行 DLL 的原始 x86 汇编指令。否则,您需要将 DLL 的源代码加载到 VC++ 中并使用 VC++ 的调试器,将您的 Delphi 应用程序指定为用于调试会话的可执行文件。
如果您不想使用 VC++,也许您也可以使用 Windows 调试工具(WinDbg),但 Delphi 无法调试 VC++ 代码,因为它不支持其符号文件格式。