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 Updated to NodeBB v4.3 + New Features

Debug single thread in multithread-application.

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 4 Posters 3.6k Views 4 Watching
  • 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 last edited by themts
    #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
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on 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 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.HilkJ 1 Reply Last reply
        0
        • T themts

          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.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on 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 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.

            kshegunovK 1 Reply Last reply
            0
            • T themts

              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.

              kshegunovK Offline
              kshegunovK Offline
              kshegunov
              Moderators
              wrote on last edited by kshegunov
              #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