Results 1 to 2 of 2

Thread: Debug plugin loader in console application

  1. #1
    Join Date
    May 2016
    Posts
    12
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Debug plugin loader in console application

    Greeting

    I have 2 project in one session in qt creator. One is console application and the other is shared plugin. I'm loading the plugin and then call it's method. I want to enter plugin's method and debug it over there. Is it possible? If it is, Can you tell me what should i do?

    Qt Code:
    1. QPluginLoader * pluginLoader = new QPluginLoader(pluginPath.c_str());
    2. QObject * plugin = pluginLoader->instance();
    3.  
    4. if (plugin)
    5. {
    6. deviceManager = qobject_cast<DeviceManager *>(plugin);
    7. return deviceManager->initialize(); //I want to enter this function which is in plugin project
    8. }
    9. else
    10. {
    11. delete pluginLoader;
    12. return false;
    13. }
    To copy to clipboard, switch view to plain text mode 

    PS: I'm using Qt 5.6.2 with MinGW 32bit.

    Thanks in advance
    Last edited by meysam_hashemi; 13th December 2017 at 13:00.

  2. #2
    Join Date
    May 2016
    Posts
    12
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: Debug plugin loader in console application

    Its seems MinGW not supporting this feature. I used Microsoft compiler and it works.

Similar Threads

  1. Replies: 7
    Last Post: 24th January 2016, 22:43
  2. Replies: 4
    Last Post: 30th October 2014, 10:19
  3. why debug console continue appear?
    By banlinhtienphong in forum Qt Programming
    Replies: 4
    Last Post: 27th April 2011, 14:03
  4. QtCreator debug in console mode
    By stef13013 in forum Qt Tools
    Replies: 0
    Last Post: 8th February 2011, 16:34
  5. How to forward console debug data
    By Nik8768 in forum Qt Programming
    Replies: 1
    Last Post: 27th April 2010, 20:15

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.