在调试模式下搜索对象 [英] Search in debug mode inside an object

查看:143
本文介绍了在调试模式下搜索对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在调试C#应用程序时,是否可以在对象内搜索值和/或其他字段?
我正在寻找一个深入的搜索,可以深入了解对象的多个级别。

Is it possible to search inside an object for values and/or other field while debugging a C# application? I'm looking for a deep search that can drill down the object for many levels.

我正在寻找的是一种搜索方式(如F3用于文档搜索)内部非常复杂的对象(在调试时,在Quick Watch窗口中)。

What I'm looking for is a way to search (like F3 for documents search) inside very complex objects (while debugging, in the Quick watch window for example).

推荐答案

你可以使用 OzCode (Visual Studio的附加组件),可让您搜索,您可以在悬停的数据提示或QuickWatch窗口中查看成员。

You could use OzCode (an add-on for Visual Studio), which lets you search for the members you want to see from within the on-hover-DataTip or the QuickWatch window.

请参见以下截图中的示例:

See example in the following screenshot:

全面披露:我是OzCode的共同创始人。

Full disclosure: I am the co-creator of "OzCode".

这篇关于在调试模式下搜索对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆