常规环境变量

下表列出了可在用户模式和内核模式调试中使用的环境变量。

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 使用的代理服务器。 有关详细信息,请参阅 防火墙和代理服务器

_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

防止自动 bug 检查分析。

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. 默认情况下,路径为 Windows 调试工具安装目录的 srcsrv 子目录,文件名为 Srcsrv.ini。 See Source Indexing for details.