CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2024
    Posts
    5

    Multi-threading, Visual Studio, and Breakpoints

    Hi. I need some clarification and/or help with a multi-threaded application being debugged with Visual Studio.

    I notice that when I hit a breakpoint in a thread, it stops, and I can examine the status and values, but when I step to the next instruction, the debugger goes back to the original breakpoint. I think I understand that a different thread is hitting the breakpoint, and that when one thread is stopped, they all seem to stop, until I go forward. Is this understanding correct?

    Is there a way to hold the other threads, while I single step the first one? Also, is there anything in the debugger that will identify the particular thread that is stopped at the breakpoint? Thank you.

  2. #2
    Join Date
    Apr 2024
    Posts
    5

    Re: Multi-threading, Visual Studio, and Breakpoints

    p.s.I have Visual Studio 2022 Community at version 17.9.6 and I am debugging a C++ program.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured