I'm quite new to the multithreading environment and I'm having trouble debugging an application which makes use of a threadpool created by the elapsed event in System.Timers.timer class. I have a breakpoint set inside a method which is called each time by the elapsed event, but Visual Studio's is jumping between lines of code because it is indicating the actions of the other threads.
How do I debug through a method, from start to finish on a particular thread without Visual Studio alerting me of other threads? Can Visual Studio stop all threads and let me debug from a chosen thread?