Rediger

Del via


.open (Open Source File)

The .open command searches the source path for a source file and opens this file.

.open [-m Address] FileName 
.open -a Address 

Parameters

FileName
Specifies the source file name. This name can include an absolute or relative path. Unless you specify an absolute path, the path is interpreted as relative to a directory in the source path.

-m **** Address
Specifies an address within the source file. This address must be contained in a known module. You should use the -m **** Address parameter if the file that FileName specifies is not unique. For more information about the syntax, see Address and Address Range Syntax.

The -m parameter is required if you are using a source server to retrieve the source files.

-a Address
Specifies an address within the source file. This address must be contained in a known module. If the debugger can find the source file, the debugger loads and opens the file, and the line that corresponds to the specified address is highlighted. If the debugger cannot find the source file, the address is displayed in the Disassembly window. For more information about the syntax, see Address and Address Range Syntax.

Environment

You can use the .open command only in WinDbg, and you cannot use it in script files.

Item Description
Modes User mode, kernel mode
Targets Live, crash dump
Platforms All

Additional Information

For more information about source files and source paths and for other ways to load source files, see Source Path.