views:

37

answers:

1

I have never spent much time debugging multithreaded .NET apps (or others), and have quite a simple one to solve very quickly. Ideally I would imagined and would lurve to be able to intercept thread creation and use by worker objects, so that nothing unexpected happens while I'm on a breakpoint in my thread. Is that realistic?

What else is there in VS 2010?

+1  A: 

You could freeze all threads except the thread you're currently working with. This should stop all work being done on all other thread pool threads and should prevent new work from getting queued unless the thread you're working with also queues work.

See John Robbins' blog on freezing threads.

Chris Schmich