Let's say you are debugging following line of code and you want to step into
ProcessList method itself.
Typically you will hit F11 (or Step Into option). That action will first take you in
GetListOfStrings method. Since you do not want to debug this particular method you will simply step out of here. Then you hit F11 again which will take you in
GetListOfInts method. Again, you really want to debug
ProcessList method so once again you will step out from here as well. Now if you hit F11 again, this time it will take you in the right method
ProcessList and you can debug the piece of code that you wanted to debug.
Rather than hitting F11 three times and steping out of these methods, you can right click when the first time you hit line of code where ProcessList method is called. If you look at available option in this context menu, one option is called "Step Into Specific". This option will also have sub-menus with all possible methods that could be invoked from this particular line. As show in figure below, all three methods
GetListOfInts are available here. If you choose
ProcessList from this context sub-menu, it will take you directly in
ProcessList method without stepping in and out of other two methods.
I hope you will find this tip helpful.
Kamran Bilgrami is a seasoned software developer with background in designing mission critical applications for carrier grade telecom networks. More recently he is involved in design & development of real-time biometric based security solutions. His areas of interest include .NET, software security, mathematical modeling and patterns.
He blogs regularly at http://WindowsDebugging.Wordpress.com