开发者

VS 2008 debugging: How to filter and iterate collections in immediate debug window?

开发者 https://www.devze.com 2023-01-17 05:42 出处:网络
I guess question says it all. I know one cannot use lambdas in immediate window, but sometimes I need to either filter a collection or display property of the items in the collection for each entry. I

I guess question says it all. I know one cannot use lambdas in immediate window, but sometimes I need to either filter a collection or display property of the items in the collection for each entry. Is开发者_运维问答 there a way to do that?


No, you cannot. You would have to create a method that does your filtering, recompile, then use your method from the debugger.


I don't know if this will help you, but have you looked at creating your own debugger visualizer? The only custom debugger visualizer I've used is the one from Scott Gu for evaluating LINQ to SQL expressions, but I haven't written on myself so I don't know the limitations.

0

精彩评论

暂无评论...
验证码 换一张
取 消