|
-
February 7th, 2012, 07:00 PM
#1
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
-
February 8th, 2012, 10:41 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|