Windbg - 如何转储与给定过滤器匹配的字符串 [英] Windbg - How can I Dump Strings which match a given filter
本文介绍了Windbg - 如何转储与给定过滤器匹配的字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可以使用以下命令转储所有字符串!dumpheap 类型 System.string
One can dump all the string using the following command !dumpheap -type System.string
如何仅转储或打印那些以特定字符串"开头或包含特定字符串"的字符串
How can dump or print only those string which starts or contains a specific "string"
示例.我只想查看包含/my/app/request"的字符串
Example. I am only intrested to view the string which contains "/my/app/request"
推荐答案
为此使用 sosex 而不是 sos.它有一个 !strings
命令,允许您使用 /m:<filter>
选项过滤字符串.
Use sosex instead of sos for this. It has a !strings
command which allows you to filter strings using the /m:<filter>
option.
这篇关于Windbg - 如何转储与给定过滤器匹配的字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文