Filter a list of objects during debugging in Visual Studio 2013

I have a List<Student> which contains lets say 500 students. When I enter debug mode on a breakpoint, is there a way to filter / search for a student?

I do not want to write code for this check, as shown below:

 List<Student> students = data.GetStudents(); //break here and filter for student in debug mode var myStudent = students.Where(k=>k.StudentNumber=="S12312"); 

Is it impossible to do this in Visual Studio 2013, I think it will be a great opportunity to add ...

+6
source share
3 answers

You can use the third-party OzCode debugging tool (disclaimer: I work for the company that does this, although I am not working on the product myself).

It extends the QuickWatch debug window to allow searching within an object, searching for strings and values ​​in all properties of an object. This is not a complete lambda, but it allows you to run a search on several levels to find the value:

enter image description here

+3
source

Source: https://habr.com/ru/post/980860/


All Articles