In VS 2022. Write a debug text with some special chars (Debug.WriteLine("###: ...")) then in the output window search (ctrl+f) for the special chars and select Find All option in search window. In Find All window (named Find "###") you will see only lines you want.