Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Multithreading

Multithreading

Scheduled Pinned Locked Moved C / C++ / MFC
debuggingtutorialquestion
5 Posts 5 Posters 0 Views 1 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.
  • S Offline
    S Offline
    SatyaDY
    wrote on last edited by
    #1

    Hi, How to debug an application which is having multiple threads on windows paltform ?? Anybody got some clues?? Thx & Reg, Satya

    _ P A A 4 Replies Last reply
    0
    • S SatyaDY

      Hi, How to debug an application which is having multiple threads on windows paltform ?? Anybody got some clues?? Thx & Reg, Satya

      _ Offline
      _ Offline
      _Magnus_
      wrote on last edited by
      #2

      run it trough the debugger...? /Magnus


      - I don't necessarily agree with everything I say

      1 Reply Last reply
      0
      • S SatyaDY

        Hi, How to debug an application which is having multiple threads on windows paltform ?? Anybody got some clues?? Thx & Reg, Satya

        P Offline
        P Offline
        Prakash Nadar
        wrote on last edited by
        #3

        put a breakpoint in each thread and press F8 to step through the execution context will toggle between threads... If you pressF5 then you may loose the control of debugging the threades.


        MSN Messenger. prakashnadar@msn.com Tip of the day of visual C++ IDE. "We use it before you do! Visual C++ was developed using Visual C++"

        1 Reply Last reply
        0
        • S SatyaDY

          Hi, How to debug an application which is having multiple threads on windows paltform ?? Anybody got some clues?? Thx & Reg, Satya

          A Offline
          A Offline
          Antony M Kancidrowski
          wrote on last edited by
          #4

          Debugging threads is always difficult. If at all possible try to debug with the minimum number of threads at any one time. As has already been mensioned context switching will occur while debugging threads. Ant.

          1 Reply Last reply
          0
          • S SatyaDY

            Hi, How to debug an application which is having multiple threads on windows paltform ?? Anybody got some clues?? Thx & Reg, Satya

            A Offline
            A Offline
            Aris Adrianto S
            wrote on last edited by
            #5

            I think you can use the ordinary "TRACE" inside each threads, and then use F5 to debug. This will only show you the sequence of operations that really happen. But the advantage is that you will know what is happened on when But don't use too many TRACE, on each thread, cause doing so will make the debug report is too long and hard to TRACE does it help? :-O Programming or Die? ----C++ 4 ever-----

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups