In previous tip, we have seen how to debug multithread application in Visual Studio. Debugging multithread application can be simple as well as complex depends on the application complexity. For a small application, where there are only few threads are running you can easily identify and trace them, but when program is complex it could be difficult to identify… Read More »
This post talks about; how to work with multithreaded program debugging, where is your current thread, what is the thread execution sequence, what is the state of thread. Before continuing with the actual process, let’s consider you have the following piece of code which you want to debug.
You can stop the debugger at breakpoint after a specific number of breakpoint hit. Hit Count is used to keep track on how many times the debugger has paused at some particular breakpoint. This is extremely useful when you want to stop the debugger after a certain number within a iterative process; and of course where you have… Read More »
Watch window allows you to view the variables values in Hex Mode. This is very simple features, Just Right Click on Watch window and select Hexadecimal Display. Once you select “Hexadecimal Display”, you will get the screen similar like below
IIS monitors the worker processes health by sending a periodic request the worker processes. This pinging is to ensure that if the worker processes responding the incoming requests in timely manner. If the worker process does not respond in a timely manner, IIS terminates the process after a specific number of ping. Now, consider you are debugging your… Read More »
Visual Studio processes windows shows the list of attached process and it also helps to detach a particular process from the list of attached process. Let’s assume you have 4 process attached with visual studio for current application. If you use “Detach All”, Visual Studio will detach all the process apart from the process which can cause the… Read More »
While debugging in Visual Studio, we used “Attach To Process” window to attach a particular process. We can use the same window to attach multiple processes as well. “Attach to Process” windows grayed out the processes which are already attached and “Attach” process comes as disabled if you try to attach an grayed out process as it’s already… Read More »
Its been a number of days when I last posted in DailyDotnetTips, but I always find fun in posting something here. Today I will talk about how you can get integration of Source code server with your .NET programs so that you can easily see the Source code of the .NET library while you debug. By source code… Read More »