共用方式為


!ndiskd.dbglevel

!ndiskd.dbglevel 擴充功能會顯示並選擇性地變更目前的 NDIS 偵錯層級。

Warning!ndiskd.dbglevel 已被 WPP(Windows 軟體追蹤預處理器)和驅動程式驗證器取代。 !ndiskd 如果您的目標系統不支援 !ndiskd.dbglevel,則會提供下列警告。

0: kd> !ndiskd.dbglevel
    This target does not support tracing through !ndiskd.dbglevel or
    !ndiskd.dbgsystems.
    Learn how to collect traces with WPP

如果您按下警告底部的連結,!ndiskd 會為您提供詳細資訊。

0: kd> !ndiskd.help wpptracing
    WPP traces are fast, flexible, and detailed.  Plus, starting with Windows 8
    and Windows Server 2012, you can automatically decode NDIS traces using the
    symbol file.  Just point TraceView (or tracepdb.exe) at NDIS.PDB, and it
    will be able to get all the TMFs it needs to trace NDIS activity.
    
    If you would like traces to be printed in the debugger window, you use the
    !wmitrace extension.  For example, you might enable traces with this:

    !wmitrace.searchpath c:\path\to\TMF\files
    !wmitrace.start ndis -kd
    !wmitrace.enable ndis {DD7A21E6-A651-46D4-B7C2-66543067B869} -level 4 -flag 0x31f3

如需 WPP 的詳細資訊,請參閱 WPP 軟體追蹤

如需驅動程式驗證器的詳細資訊,請參閱 驅動程序驗證器

如需 WMI 追蹤的詳細資訊,請參閱 WMI 追蹤延伸模組 (Wmitrace.dll)。

!ndiskd.dbglevel [-level <str>]

參數

-水準
偵錯詳細資訊層級。 可能的值包括:

  • NONE - 停用偵錯追蹤
  • 嚴重 - 可列印嚴重錯誤
  • ERROR - 可列印錯誤
  • WARN - 允許列印警告
  • INFO - 可列印資訊訊息
  • VERBOSE - 可列印所有偵錯追蹤

DLL

Ndiskd.dll

備註

此延伸模組僅適用於已核取NDIS.sys。 若要檢查NDIS.sys的組建資訊,請執行 !ndiskd.ndis 延伸模組。

另請參閱

網路驅動程序設計指南

Windows Vista 和更新版本的網路參考

偵錯網路堆疊

NDIS 延伸模組 (Ndiskd.dll)

!ndiskd.help

!ndiskd.ndis

WPP 軟體追蹤

驅動程式驗證器

WMI 追蹤延伸模組 (Wmitrace.dll)