在Visual Studio中的对象监视窗口中搜索文本 [英] Searching for text in an Object watch window in visual studio

查看:121
本文介绍了在Visual Studio中的对象监视窗口中搜索文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Visual Studio2010.我已经设置了一个断点,并在具有非常深层次的复杂对象上添加了一块手表.我想知道是否有任何快速方法可以在此对象树中搜索我想要的特定字符串.换句话说,我只想说此对象中是否包含类似"Foo"的东西.我不在乎它是什么,只要告诉我它是否知道"Foo",就可以了. .请给我所有"Foo"的实例."

I am using visual studio 2010. I have set a breakpoint and added a watch on a complex object with very deep hierarchy. I was wondering if there was any quick way to search this object tree for a particular string I want. Either as a property/value/method etc. In other words, I just want to say "Does this object have anything like "Foo" in it. I don't care what it is, just tell me if it knows about "Foo". Give me all instances of "Foo"."

例如,如果我有一个包含3个Dictionary和4个XML元素的对象,当我中断并在该对象上添加watch并搜索"Foo"时,我想找出列表2包含一个带有"Foo"的字符串,列表3具有对象"Bar",其属性为"Foo",而XMLElement 1具有子级"Foo"

For example, if I have an object containing 3 Dictionaries and 4 XML elements, when I break and add watch on the object and search for "Foo", I want to find out that list 2 has a string with "Foo", List 3 has an Object "Bar" which has property "Foo" and XMLElement 1 has a child "Foo"

是否有任何Powerpack插件,商业插件或Visual Studio的其他扩展会让我做到这一点?

Is there any powerpack plugin, commercial plugin or some other extension of visual studio that would let me do this?

为您提供一些背景信息.我正在评估各种PDF解析组件以解析各种PDF.我正在尝试提取某些自定义标签,pdf内容以及各种其他工件等.在执行此操作时,一旦读取并解析了pdf,就很好地搜索对象并说出类似的信息,这样对文本"My签名"...不.好的.让我们调用此"ConvertToHTML"方法来获取对象B.对象B是否了解有关我的签名"等的任何信息.

To give you some context. I am evaluating various PDF parsing components to parse various PDFs. I am trying to extract certain custom tags, pdf content and various other artifacts etc. While doing this, once the pdf is read and parsed, it would be nice to search the object and say something like does this know anything about the text "My Signature"... hmm.. nope. Ok. Lets call this "ConvertToHTML" method to get object B. Does object B know anything about "My Signature" etc.

任何帮助将不胜感激.

推荐答案

Visual Studio 2019

现在 Visual Studio 2019

还有一个商业 Visual Studio扩展,名为 OzCode ,它具有很多调试体验增强功能,包括 搜索 :

There is also a commercial Visual Studio Extension called OzCode which has lots of debugging experience enhancements including search:

这篇关于在Visual Studio中的对象监视窗口中搜索文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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