Debug single thread in multithread-application.
-
wrote on 9 Apr 2017, 16:34 last edited by themts 4 Sept 2017, 16:36
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
mtsP.S. Right now I'm using windows MSVC2015 but in the future I will compile and debug the application on linux as well.
-
Hi,
From a quick look, there might be something for you here in the visual studio documentation.
Hope it helps
-
wrote on 2 Aug 2017, 08:17 last edited by
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 pausedDo you have any idea if this is possible?
-
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 pausedDo you have any idea if this is possible?
If you right click a breakpoint you can edit it, in the
advanced
you can editThread specifications
.
I think this is what you want, but I'm not sure, haven't used that feature yet myself. -
wrote on 2 Aug 2017, 09:38 last edited by
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. -
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.Moderatorswrote on 2 Aug 2017, 22:31 last edited by kshegunov 8 Feb 2017, 22:32Speculating here, but try putting the thread id in that field - the number you see it in the threads list.