程序有三个线程,主线程,ThreadA,ThreadB,调试主线程中的代码是可以的,但是在ThreadA, ThreadB中设断点是无效的,刚进入GDB就崩掉了,如图

下面是创建线程的代码
pClassA = new ClassA;
pClassB = new ClassB;
pThreadA = new QThread();
pThreadB = new QThread();
pClassA ->moveToThread(pThreadA );
pClassB->moveToThread(pThreadB);