How can I debug a single process on a multiprocess system?
My development machine is a quad-core system, but I just ran into (and I am still debugging) and a problem where my application is deployed to uniprocessor systems. I get a dead lock.
I would like to be able to debug using only one processor instead of creating a development VM for debugging.
Is it possible to tell Visual Studio to use only one processor when starting a debug session, or are there any tools out there that can help find deadlocks.
Typically, I want to test one and several basic scripts on the same machine, and I am looking for tips, tricks, and tools.
I should mention that I am using .NET 3.5 SP1
source to share
Changing the proximity of the processor to the process should work. For this purpose there is a WinAPI function, SetProcessAffinityMask , and for a one-off thing, you can also use the Task Manager to change the affinity of a given process.
source to share