共用方式為


一般環境變數

下表列出可用於使用者模式和核心模式偵錯的環境變數。

Variable Meaning

_NT_DEBUGGER_EXTENSION_PATH = Path

指定偵錯工具將先搜尋延伸模組 DLL 的路徑。 Path can contain a drive letter followed by a colon (:). Separate multiple directories with semicolons (;). 如需詳細資訊,請參閱 載入偵錯工具延伸模組 DLL

_NT_EXECUTABLE_IMAGE_PATH = Path

指定包含二進位可執行檔的路徑。 Path can contain a drive letter followed by a colon (:). Separate multiple directories with semicolons (;).This path is used in some situations such as user mode minidump files. 如需詳細資訊,請參閱 在 WinDbg 中設定符號和可執行映像路徑

_NT_SOURCE_PATH = Path

指定包含目標來源檔案的路徑。 Path can contain a drive letter followed by a colon (:). Separate multiple directories with semicolons (;). For details, and for other ways to change this path, see Source Path.

_NT_SYMBOL_PATH = Path

指定包含符號檔的目錄樹狀結構根目錄。 Path can contain a drive letter followed by a colon (:). Separate multiple directories with semicolons (;). For details, and for other ways to change this path, see Symbol Path.

_NT_ALT_SYMBOL_PATH = Path

指定在_NT_SYMBOL_PATH之前搜尋的替代符號路徑。 這對於保留符號檔案的私人版本很有用。 Path can contain a drive letter followed by a colon (:). Separate multiple directories with semicolons (;). For details, see Symbol Path.

_NT_SYMBOL_PROXY = Proxy:Port

指定 SymSrv 要使用的 Proxy 伺服器。 如需詳細資訊,請參閱 防火牆和 Proxy 伺服器

_NT_DEBUG_HISTORY_SIZE = Number

指定指令歷程中可在遠端偵錯期間存取的指令數目。 Because commands vary in length, the number of lines available may not exactly match Number.

_NT_DEBUG_LOG_FILE_OPEN = Filename

(僅限 CDB 和 KD)指定偵錯工具應該將輸出傳送至的記錄檔。

_NT_DEBUG_LOG_FILE_APPEND = Filename

(僅限 CDB 和 KD)指定偵錯工具應該附加輸出的記錄檔。

_NT_EXPR_EVAL = {masm | c++}

指定預設運算式評估器。 If masm is specified, MASM expression syntax will be used. If c++ is specified, C++ expression syntax will be used. MASM 運算式語法是預設值。 See Evaluating Expressions for details.

_NO_DEBUG_HEAP

指定偵錯堆積不應用於使用者模式偵錯。

DBGENG_NO_DEBUG_PRIVILEGE

防止偵錯工具所產生的進程繼承 SeDebugPrivilege。

DBGENG_NO_BUGCHECK_ANALYSIS

防止自動錯誤檢查分析。

DBGHELP_HOMEDIR

指定 SymSrv 和 SrcSrv 所使用之預設下游存放區根目錄的路徑。 Path can contain a drive letter followed by a colon (:). Separate multiple directories with semicolons (;).

SRCSRV_INI_FILE

Specifies the path and name of the configuration file used by SrcSrv. 預設情況下,路徑是 Debugging Tools for Windows 安裝目錄的 srcsrv 子目錄,檔名為 Srcsrv.ini。 See Source Indexing for details.