Search code examples
c++qtcomqt-creatorcom-server

Can I debug com server in Qt Creator?


I have a clipboard program that implements a COM interface(IDataObject). The com server runs correctly, i.e., the com client can connect to it and retrieve data from it without problem. The problem is the COM server cannot break at breakpoints when a COM client calls it, i.e., when a client pastes the content from clipboard. Is this the designed behavior of Qt Creator,i.e., you cannot set breakpoints to debug a com server in Qt Creator?


Solution

  • if you cant add breakpoint you can still print debug messages

    #include<QDebug>
    
    void SomeClass::SomeMethod(const QString& msg)
    {
        qDebug() << "Message: " << msg;
    }