Is there any way to filter out specific files when running the debugger, specifically for C#? We have a logger class that intercepts calls between certain classes and logs them. It is very annoying that "Step Into" always goes through that file despite it not adding any useful information.
Is it possible to set a filter for files that should be ignored when running the debugger so that it is always skipped and the step goes to the next non-ignored file instead?
Yes, you can mark methods to be ignored by the debugger with [DebuggerStepThrough]
. For example:
public class Logger
{
[DebuggerStepThrough]
public void Log(string message);
}
Now if you try to step into this method, it will be skipped.