2011年10月19日 星期三

How to use DebugView in Win7

        If you use Win7 to develop Windows applications, you may find that DebugView can't receive the string sent from OutputDebugString. It's quite inconvenient  especially when debugging on Timer or some continuous events (Such as OnPaint or Mouse events...etc). This function should be disabled on Win7 because of security consideration.
        If you want to enable the function of receiving debug string by DebugView, please follow the steps below:
  1. Open Registry Editor. (Run -> regedit)
  2. Go to this key: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager]
  3. Create a new key called [Debug Print Filter].
  4. Create a new DWORD value called "DEFAULT", and set the value to 0x0f as the following image.
  5. Reboot. (To make the modification effective)
 
And then you can use DebugView to receive the debug strings sent from OutputDebugString.

The description of OutputDebugString:

沒有留言:

張貼留言