你最喜欢的Windbg技巧/技巧是什么? [英] What is your favourite Windbg tip/trick?

查看:136
本文介绍了你最喜欢的Windbg技巧/技巧是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经意识到,Windbg是一个非常强大的调试器,用于Windows平台和我偶尔会学到一些新的东西。可以让Windbg的用户分享一些他们的疯狂技能吗?



ps:我不是在寻找一个漂亮的命令,那些可以在文档中找到。如何分享提示,做一些别无其他的想法可以用windbg做的事情?例如一些方法来生成一个进程在windbg下运行的内存分配统计信息。

解决方案

我最喜欢的是命令 .cmdtree< file> (未记录,但在以前的发行说明中引用)。这可以帮助提出另一个窗口(可以对接)来显示有用或常用的命令。这可以帮助用户使用该工具提高使用效率。



最初在这里谈到,以< file> 参数:
http://blogs.msdn.com/debuggingtoolbox/archive/2008/09/17/special-command-execute-commands-from-a-customized- user-interface-with-cmdtree.aspx



示例:
alt text http://blogs.msdn.com/photos/debuggingtoolbox/images/8954736/original.aspx


I have come to realize that Windbg is a very powerful debugger for the Windows platform & I learn something new about it once in a while. Can fellow Windbg users share some of their mad skills?

ps: I am not looking for a nifty command, those can be found in the documentation. How about sharing tips on doing something that one couldn't otherwise imagine could be done with windbg? e.g. Some way to generate statistics about memory allocations when a process is run under windbg.

解决方案

My favorite is the command .cmdtree <file> (undocumented, but referenced in previous release notes). This can assist in bringing up another window (that can be docked) to display helpful or commonly used commands. This can help make the user much more productive using the tool.

Initially talked about here, with an example for the <file> parameter: http://blogs.msdn.com/debuggingtoolbox/archive/2008/09/17/special-command-execute-commands-from-a-customized-user-interface-with-cmdtree.aspx

Example: alt text http://blogs.msdn.com/photos/debuggingtoolbox/images/8954736/original.aspx

这篇关于你最喜欢的Windbg技巧/技巧是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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