Does anyone know how to programmatically ignore a thread while debugging?
I understand that threads can be flagged or filtered in the thread window but I would like to automate this so that I don't have to continuously ignore new incoming traffic from sources like SignalR.
Something like
if (myCondition && System.Diagnostics.Debugger.IsAttached)
System.Threading.Thread.CurrentThread.IgnoreDebugger();
EDIT: Addition Constraints
I would like to ignore the identified thread as well as any child threads generated through Async behavior. Maintaining a collection of threads to ignore or allow would require me to add the same filter/filter helper on all future breakpoints, so I'm hoping for a thread flag or debugger level item instead of a per-breakpoint solution