我可以在Qt的线程错误消息中放入调试挂钩吗?

时间:2016-02-26 00:11:40

标签: c++ multithreading qt gdb ddd-debugger

我认为我在Qt C ++应用程序中已经破坏了线程关联性的规则。

我收到很多这样的消息:

QBasicTimer::stop: Failed. Possibly trying to stop from a different thread
QBasicTimer::start: Timers cannot be started from another thread

我正在使用DDD / GDB。我可以插入某种陷阱来捕捉这些错误并给我一个回溯吗?理想情况下,在此期间暂停所有其他线程?

我试图停止写入stdout(b write if 1==$rdithis),但这不起作用。

0 个答案:

没有答案