![]() This command is equivalent to using the Edit | Display Selected Type command or pressing CTRL SHIFT Y. If the selected text includes more than a single object, a syntax error or other irregular results might be displayed. This display appears in the Debugger Command window. This command is equivalent to using the Edit | Evaluate Selection command, pressing CTRL SHIFT V, or using the ? (Evaluate C Expression) command with the selected text as its argument.ĭisplay selected type displays the data type of the selected object. If the selected text includes more than one line, a syntax error results. The result appears in the Debugger Command window. Other substitution possibilities include %L, which indicates that line numbers are zero-based, and %p, which can also indicate that the current source file should be used.Įvaluate selection evaluates the currently selected text by using the C expression evaluator. The %l option indicates that line numbers should be read as one-based, while %f indicates that the current source file should be used. In this case, Myeditor.exe will open to the one-based line number of the current source file. c:\my\path\myeditor.exe -file %f -line %l For example, consider the case when the value of WINDBG_INVOKE_EDITOR is the following. The editor is determined by the WinDiff editor registry information or by the value of the WINDBG_INVOKE_EDITOR environment variable. This command is equivalent to using the Edit | Set Current Instruction command or pressing CTRL SHIFT I.Įdit this file opens the source file in a text editor. Set instruction pointer to current line changes the value of the instruction pointer to the instruction that corresponds to the current line. The following list describes some of the menu commands: To access the menu, select and hold (or right-click) the title bar or select the icon that appears near the upper-right corner of the window ( ). For more information about changing the font and tab settings, see Changing Text Properties.Įach Source window has a shortcut menu with additional commands. You cannot edit a source file in the debugger. Using the Source WindowĮach Source window displays the text of one source file. Opensource dst viewer full#The title of each Source window is the full path of the source file. The following screen shot shows an example of a Source window.Įach source file resides in its own Source window. Opensource dst viewer windows#To restore or switch to an open Source window, go to the Window menu and choose from the list of windows at the bottom of the menu. The debugger opens a source window when it loads a new source file. In WinDbg, the Source window displays source files that have been loaded into the debugger. ![]() open (Open Source File) command.Įnter the lsf (Load or Unload Source File) command. Select the Close button in the corner of the Source window.Ĭhoose Recent Files from the File menu to open one of the four source files that you most recently opened in WinDbg.Įnter the. Note When you use the menu or the toolbar button to open a source file, the path of that file is automatically appended to the source path.Ĭhoose Close Current Window from the File menu. You can also use the Open source file button ( ) on the toolbar. To open or close a source file directly, do one of the following:Ĭhoose Open Source File from the File menu, or press CTRL O. See WinDbg Command-Line Options.īefore you start the debugger, set the _NT_SOURCE_PATH environment variable. When you start the debugger, use the -srcpath or -lsrcpath command-line option. lsrcfix (Use Local Source Server) is slightly easier. lsrcpath (Set Local Source Path) command. srcfix (Use Source Server) is slightly easier. To control the source path in WinDbg, do one of the following:Ĭhoose Source File Path from the File menu or press CTRL P. For more information about source servers, see Using a Source Server. You can use a source server by using the srv* string within your source path. ![]() ![]() Note If you are connected to a corporate network, the most efficient way to access source files is to use a source server. Opensource dst viewer code#For more information about viewing source code in the debugger, see Source Code. The source path specifies the directories where the C and C source files are located. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |