【发布时间】:2020-10-17 10:38:50
【问题描述】:
I've been following the instructions here for remote debugging with CDB.
我能够很好地连接到远程机器的 CDB 会话并查看输出,但是当我尝试在运行 Qt Creator 的本地机器上添加断点时,我最终收到以下错误:
The call to LoadLibrary(qtcreatorcdbext) failed, Win32 error 0n126
"The specified module could not be found."
我创建了一个系统环境变量 _NT_DEBUGGER_EXTENSION_PATH,它指向远程机器上包含 qtcreatorcdbext.dll 的文件夹。 DLL 是 64 位版本,我在使用 MSVC2017 64 位编译器编译的 64 位应用程序上运行 64 位版本的 CDB。如果我将 qtcreatorcdbext.dll 替换为 32 位版本,则在指定断点时出现以下错误:
The call to LoadLibrary(qtcreatorcdbext) failed, Win32 error 0n193
"%1 is not a valid Win32 application."
所以看起来它能够找到 DLL,但实际上并没有加载 64 位版本。我还验证了我在两台机器上运行的 CDB 版本相同。
感谢任何帮助!
【问题讨论】:
标签: c++ windows qt qt-creator remote-debugging