确认下面的情况,看看是否有效(我用的是4.76版本):
1. 是否有其他编辑器作为了Debug信息输出窗口。 例如:vc在debug时调用OutputDebugString的内容不会输出到DbgView上。
2.版本是否正确。 分两种:
Under Windows 9x/Me DebugView can capture output from the following sources:
-
Win32 OutputDebugString
-
Win16 OutputDebugString
-
Kernel-mode Out_Debug_String
-
Kernel-mode _Debug_Printf_Service
Under Windows NT and Win2k DebugView can capture:
-
Win32 OutputDebugString
-
Kernel-mode DbgPrint
-
All kernel-mode variants of DbgPrint implemented in Windows XP and .NET Server
3.如果是在Windows7下,可能需要设置注册表(这个是从网上看到的,但是我不设置好像也可以)。如:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager,打开或者创建子项Debug Print Filter,然后新建一个DWORD值DEFAULT,将其设置成0xF,重启即可。
4. 设置Options/Force Carriage Returns 为选择状态,否则有可能不能实时看到你输出的信息,具体原因看DbgView帮助说明。
转自:http://blog.youkuaiyun.com/yinzhiqing/article/details/6585383