windows DebugView 没有输出

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12494300/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 09:53:31  来源:igfitidea点击:

No output from DebugView

windowsdebuggingdebugview

提问by DaveO

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.

我已经在 Windows 7 和 Windows 8 64 位机器以及 Windows 7 32 位机器上安装了 DebugView 4.79。在以管理员身份启动 DebugView 时,我没有看到所有这些输出。我正在尝试调试使用带有 ATLTRACE 调用的 CLI/C++ 组件的应用程序。

I've enabled capture events, capture win32 and capture global win32 and see nothing so I'm not sure what's going on.

我启用了捕获事件、捕获 win32 和捕获全局 win32,但什么也没看到,所以我不确定发生了什么。

回答by Naishy

By default DbgPrint() output is disabled in Vista/Server2008 and above. The following setting in the registry should enable the debug prints.

默认情况下,Vista/Server2008 及以上版本禁用 DbgPrint() 输出。注册表中的以下设置应启用调试打印。

  1. Open up the registry
  2. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Debug Print Filter
  3. Add the following value DEFAULT: REG_DWORD: 0xFFFFFFFF
  4. Reboot
  1. 打开注册表
  2. 导航 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Debug Print Filter
  3. 添加以下值DEFAULTREG_DWORD0xFFFFFFFF
  4. 重启

回答by sdidaddi

IF "Debug Print Filter" doesn't exist, you should create it manually

如果“调试打印过滤器”不存在,您应该手动创建它

回答by StuartLC

It sounds like there may be a bug in 4.79.

听起来4.79 中可能存在错误

Try rolling back to 4.76

尝试回滚到 4.76

Checklist:

清单:

  • Run as Admin / Elevated privileges
  • Enable Verbose Kernel Output (if applicable)
  • Also, ensure that the .exe isn't blocked
  • 以管理员身份运行/提升权限
  • 启用详细内核输出(如果适用)
  • 另外,请确保 .exe 未被阻止

回答by Vijay Kumbhani

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.

您需要确保您的进程是否在同一用户上运行。例如:您的进程以 SYSTEM 用户身份运行。您的调试视图正在当前用户上运行。

If not same user then you will need to start debug view as elevated mode.

如果不是同一个用户,那么您将需要以提升模式启动调试视图。