windbg中高亮输入的命令

windbg中默认的命令窗口,白底儿黑字,包括你输入的命令也是白底黑字,很难区分出来。

如果可以在输入命令和输出内容有所区别就可以给调试带来很大的方便。

可以在 windbg中选 "View"  的 "Options"

在 "Colors" 里面找到:

    "Prompt level command window text"
    "Prompt level command windows text background"

这2个 分别是命令的文字颜色和背景颜色,设置下这2就好了。

 

下面再列出些别的 "Colors" 里选项的含义(转至 tess 的博客):

Color name My bg - text choice Description
Background black Background for all windows (including source and disassembly windows)
Text lime All text that is not described elsewhere
Current line black on lime for the current line in the source and disassembly windows
Breakpoint current line white on fuschia if the current line is an active breakpoint
Enabled breakpoint white on red active breakpoint that is not on the current line
Disabled breakpoint white on yellow disabled breakpoint
Changed data text red (on black) data that has changed in the registers, locals and watch windows
Source ... various colors for numeric constants, character constants etc. in the source window.
I have changed all black to lime and all others to lighter colors so that they stand out on the black background.
Disabled window dark grey shown when a window is disabled, for example. the registers windows while you are not stopped at a breakpoint.
Normal level command window lime on black command output
Error level command window red on black error messages in command output
Warning level command window orange on black warnings (ex. symbol warnings) in command output
Verbose level command window blue on black additional info only displayed when you have view|verbose output turned on. For example module load info etc.
Prompt level command window black on lime command prompt and commands displayed in the command window. eg. !eeheap -gc above. 
It is nice to have this in a different color than the command output so that you can see where the command output starts.
Prompt registers level command window lime on black register output

posted on 2011-12-26 01:34  debugdotnet  阅读(510)  评论(0编辑  收藏  举报

导航