问题
I've installed DebugView 4.79 on Windows 7 and Windows 8 64 bit machines and a Windows 7 32 bit machine. On all of them I see no output from DebugView when starting it as Administrator. I'm trying to debug an application that uses a CLI/C++ component with ATLTRACE calls in it.
I've enabled capture events, capture win32 and capture global win32 and see nothing so I'm not sure what's going on.
回答1:
By default DbgPrint() output is disabled in Vista/Server2008 and above. The following setting in the registry should enable the debug prints.
- Open up the registry
- Navigate to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Debug Print Filter
- Add the following value
DEFAULT
:REG_DWORD
:0xFFFFFFFF
- Reboot
回答2:
IF "Debug Print Filter" doesn't exist, you should create it manually
回答3:
It sounds like there may be a bug in 4.79.
Try rolling back to 4.76
Checklist:
- Run as Admin / Elevated privileges
- Enable Verbose Kernel Output (if applicable)
- Also, ensure that the .exe isn't blocked
回答4:
You will need to make sure your process is running on same user or not. EX: Your process is running in SYSTEM user. Your debug View is running on current user.
If not same user then you will need to start debug view as elevated mode.
来源:https://stackoverflow.com/questions/12494300/no-output-from-debugview