using System;
using System.Diagnostics;
namespace FunctionIgnoreStepThrough
{
class Program
{
static void Main(string[] args)
{
string fn = FullName("Pavel", "Chooch");
Console.WriteLine(fn);
}
[DebuggerStepThrough]
static string FullName(string fn, string ln)
{
return string.Format("{0} {1}",fn, ln);
}
}
}
With this small change now your debugger will skip over the FullName function.