在Qt Creator中调试控制台应用程序中的共享插件

问题描述 投票:0回答:1

欢迎

我在qt creator的一个会话中有2个项目。一个是控制台应用程序,另一个是共享插件。我正在加载插件然后调用它的方法。我想进入插件的方法并进行调试(如果你在一个解决方案中有项目,就像visual studio)。可能吗?如果是的话,我该怎么做?

QPluginLoader * pluginLoader = new QPluginLoader(pluginPath.c_str());
QObject * plugin = pluginLoader->instance();

if (plugin)
{
   deviceManager = qobject_cast<DeviceManager *>(plugin);
   return deviceManager->initialize();  //I want to enter this function which is in plugin project
}
else
{
   delete pluginLoader;
   return false;
}

PS:我正在使用Qt 5.6.2和MinGW 32bit。

提前致谢

qt debugging mingw qt-creator qtplugin
1个回答
0
投票

MinGW不支持此功能。我用的是Microsoft编译器。

© www.soinside.com 2019 - 2024. All rights reserved.