2016-07-14

The dbgPrint or kdprint don't work appearing message in windbg

The dbgPrint or kdprint don't work appearing message in windbg

Preinstalled

OS : Windows 2012 R2

Cause:

Higher version of the windows than the vista , DbgPrint and KdPrint is mapped each DbgPrintEx, KdPrintEx automatically.

At this timing, DbgPrintEx will be called with Parameter 'DFLTR_INFO_LEVEL'. and, Which has 0x3 value meaning to print limited as default .

Solution:

  1. Temporarily, you can run to fix ti with command

    kd > ed Kd_DEFAULT_MASK 8

    And , Each number means next....

    #define DPFLTR_ERROR_LEVEL 0
    #define DPFLTR_WARNING_LEVEL 1
    #define DPFLTR_TRACE_LEVEL 2
    #define DPFLTR_INFO_LEVEL 3
    #define DPFLTR_MASK 0x80000000
  2. If you want to fix it permanently....

    KEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\

    If the key 'Debug Print Filter' is not in there , add the key ,else change values as 0xF.
  3. If there is not a dword of type named 'DEFAULT' , add it  with value f by yourself.






※ Reference : https://msdn.microsoft.com/en-us/library/ff551519.aspx




No comments:

Post a Comment