Can I debug com server in Qt Creator?

93 views Asked by At

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?

1

There are 1 answers

0
ΦXocę 웃 Пepeúpa ツ On BEST ANSWER

if you cant add breakpoint you can still print debug messages

#include<QDebug>

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