Debug single thread in multithread-application.



  • Hey guys,

    I have an application which uses many background-threads to communicate with some hardware.
    This hardware uses watchdogs to check communication-interruptions.

    When I use breakpoints to debug my application all threads are interrupted and the watchdogs throw error-messages.

    Is there a way to debug only a certain thread without freezing other threads?

    CU
    mts

    P.S. Right now I'm using windows MSVC2015 but in the future I will compile and debug the application on linux as well.


  • Lifetime Qt Champion

    Hi,

    From a quick look, there might be something for you here in the visual studio documentation.

    Hope it helps



  • Sorry for the long delay.
    I'm using qt-creator. It would be nice to have a function in there.

    a) halt only the thread where the breakpoint gets called from
    b) prevent some threads from getting paused

    Do you have any idea if this is possible?



  • @themts

    If you right click a breakpoint you can edit it, in the advanced you can edit Thread specifications.
    I think this is what you want, but I'm not sure, haven't used that feature yet myself.



  • I have seen this setting before but I have no idea what I can enter there?
    Unfortunately there is no documentation about this parameter at all.


  • Qt Champions 2016

    Speculating here, but try putting the thread id in that field - the number you see it in the threads list.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.