Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Debug single thread in multithread-application.
Forum Update on Monday, May 27th 2025

Debug single thread in multithread-application.

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 4 Posters 3.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    themts
    wrote on 9 Apr 2017, 16:34 last edited by themts 4 Sept 2017, 16:36
    #1

    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.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 9 Apr 2017, 21:42 last edited by
      #2

      Hi,

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

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • T Offline
        T Offline
        themts
        wrote on 2 Aug 2017, 08:17 last edited by
        #3

        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?

        J 1 Reply Last reply 2 Aug 2017, 08:22
        0
        • T themts
          2 Aug 2017, 08:17

          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?

          J Offline
          J Offline
          J.Hilk
          Moderators
          wrote on 2 Aug 2017, 08:22 last edited by
          #4

          @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.


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          1 Reply Last reply
          0
          • T Offline
            T Offline
            themts
            wrote on 2 Aug 2017, 09:38 last edited by
            #5

            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.

            K 1 Reply Last reply 2 Aug 2017, 22:31
            0
            • T themts
              2 Aug 2017, 09:38

              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.

              K Offline
              K Offline
              kshegunov
              Moderators
              wrote on 2 Aug 2017, 22:31 last edited by kshegunov 8 Feb 2017, 22:32
              #6

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

              Read and abide by the Qt Code of Conduct

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved