问题
I have a windows 10 x64 Os installed on my VMware Workstation 12. I would like to do driver related development on the VM, so I have Debug mode enabled and Driver Signing disabled. I can load my device driver successfully but none of my calls to DbgPrint are being displayed. I tried to use DbgView with "Capture Kernel" and "Capture global" checked, still nothing gets printed. I did run DbgView as Administrator. I even tried printing in Windbg X64, no luck. Has anyone dealt with this issue?
回答1:
By default DbgPrint() outputs are disabled from Vista/Server2008 onwards. You may have to do below settings in registry to enable the debug prints.
- Open up the registry.
- Go to path, “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Debug Print Filter”. If "Debug Print Filter" is not present then create it.
- Add value “DEFAULT” : REG_DWORD : 0xFFFFFFFF and then reboot.
After rebooting you will be able to get debug prints.
来源:https://stackoverflow.com/questions/45622094/dbgview-on-vmware-workstation-12-not-capturing-output