Visual Studio 2005中搜索记忆 [英] Visual Studio 2005 Search Memory

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

问题描述

我不认为这存在,但无论如何,我会扔了这一点那里。是否有可能,在调试时,搜索内存中的价值?

I don't think this exists, but I'll throw this out there anyway. Is it possible, while debugging, to search for a value in memory?

例如,如果我有一个字符串uniqueString在内存中缓存的地方,但我不'知道它是存储于其中的变量 - 我可以做它搜索?正如,找出哪些变量(S)拥有uniqueString作为自己的价值?

For example, if I have a string "uniqueString" cached somewhere in memory, but I don't know under which variable it's stored--can I do a search for it? As in, find out which variable(s) have "uniqueString" as their value?

这是C#托管代码。

推荐答案

的WinDbg将让你直接做搜索。 S就是你要找的命令,这里有一个很好的小抄。 SOS扩展可以让你扫描String对象太托管代码虽然s命令应该发现他们太(必须使用unicode意识到搜索)。

windbg will let you do the search directly. 's' is the command you're looking for, here's a very good cheat sheet. sos extension lets you scan for string objects too in managed code though the s command should find them too (must use unicode aware search).

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

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