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

    Angry How to debug running Multilthread processes

    I am taking over one project from previous engineer. The project is using multithread and each thread is excuting a window process. How do I debug the process that is running in the background? I tried to us windbg -p <pid> /g. It does not work for me. It prompt invalid process id. I think because the processes are running and quick. The code is written .NET C#. I don't know what failed in the middle of the process. If you know the way to debug, can you let me know.

    Thanks

  2. #2
    Join Date
    Feb 2002
    Posts
    4,640

    Re: How to debug running Multilthread processes

    Basically, the same way you'd debug a single threaded process. Somehow, attach a debugger to the process and "break". If the process is running too quickly, you could always add some kind of debug logging (something that logs messages to a console, or file on disk).

    Viggy

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