Steps to debug two or more threads in a common method In the real-time development, you might encounter a scenario in which you have to debug a set of method or function for its behavior across the different number of threads. I encountered a similar problem today and I had to debug it through Visual Studio 2015. Scenario I had an issue in my web application where 2 users (assume 'User-1' and 'User-2') entered their details (username/ password) and 'User-1' got logged into the system as 'User-2'. 'User-2' remained same as 'User-2'. Booommmmm! However, this issue was never reproduced by the QA Team but this was the burning issue for the client because User-2 was a superuser and client was afraid if this is happening in the production environment too. Long story short, I drilled down this issue to a static method, responsible for the login into the system was 'Private static common' variable. Dammit!!! I had to log ...