Summary of command Window debug commands for VS2005 (reprint)

Source: Internet
Author: User
Tags switches

The summary of the Debug command, very useful, so turned around. When debugging, you can enter the call in the Command window of the VS2005.

List memory in Unicode form

>du 0x056769d0 <=== du lists memory 0x056769d0 memory as a starting address in Unicode form

Original: Http://msdn.microsoft.com/en-us/library/c338aexd.aspx

[Pick] The commands window is used to execute commands or aliases directly in the Visual Studio integrated Development Environment (IDE). You can execute menu commands and commands that are not displayed on any menu. To display the command window, choose Other Windows from the View menu, and then select Command Window.

The following is a list of pre-defined command aliases that you can use in Visual Studio.

Command name

Alias

Full Name

Print

?

Debug.Print

Fast Monitoring

??

Debug.quickwatch

Add New Item

Addproj

File.addnewproject

Alias

Alias

Tools.alias

The Auto window

Autos

Debugging. Auto Window

The Breakpoints Window

Bl

Debugging. Breakpoints

Toggle Breakpoint

Bp

Debug.togglebreakpoint

The Call Stack window

CallStack

Debug. Call stack

Clear bookmarks

Clearbook

Edit. Clear Bookmarks

Shut down

Close

File.close

Close all Documents

CloseAll

Window.closealldocuments

Clear All

Cls

Edit.clearall

"Command" mode

Cmd

View. Command Window

View Code

Code

View. View Code

List memory

D

Debug.ListMemory

List memory in ANSI form

Da

Debug.listmemory/ansi

List memory (single-byte format)

Db

Debug.listmemory/format:onebyte

List memory in ANSI form (four byte format)

dc

Debug.listmemory/format:fourbytes/ansi

List memory (four-byte format)

Dd

Debug.listmemory/format:fourbytes

Delete to beginning of line

Delbol

Edit.deletetobol

Delete to end of line

Deleol

Edit.deletetoeol

Remove horizontal whitespace

Delhsp

Edit. Remove horizontal whitespace

View Designer

Designer

View. View Designer

List memory (floating-point format)

Df

Debug.listmemory/format:float

Disassembly window

Disasm

Debugging. Disassembly

List memory (eight-byte format)

Dq

Debug.listmemory/format:eightbytes

List memory in Unicode form

Du

Debug.listmemory/unicode

Calculation statements

Eval

Debug.evaluatestatement

Exit

Exit

File. Exit

Formatting the selection

Format

Edit. Formatting the selection

Fullscreen

Fullscreen

View. Fullscreen

Begin

G

Debug. Start

Go to

Gotoln

Edit. Go to

Go to curly Braces

Gotobrace

Edit. Go to curly Braces

F1 Help

Help

Help. F1 Help

"Instant" mode

Immed

Tools.immediatemode

Insert the file as text

InsertFile

Edit.insertfileastext

List Call stacks

Kb

Debug.ListCallStack

Convert to lowercase

Lcase

Edit. Convert to Lowercase

Cut lines

Linecut

Edit. Cut lines

Delete Row

Linedel

Edit. Delete Rows

List Members

ListMembers

Edit. List Members

Local Variables Window

Locals

Debugging. Local Variables

Log Command Window output

Log

Tools.logcommandwindowoutput

Command Window marker mode

Mark

Tools. command Window marker mode

"Memory" window

Memory Memory1

Debugging. Memory 1

Memory Windows 2

Memory2

Debugging. Memory 2

Memory Windows 3

Memory3

Debugging. Memory 3

Memory Windows 4

Memory4

Debugging. Memory 4

Set cardinality

N

Debug.setradix

Show Web browser

Nav Navigate

View.showwebbrowser

Next Bookmark

Nextbook

Edit. Next Bookmark

New file

Nf

File. New file

New Project

NP Newproj

File. New Project

Open File

of Open

File. Open File

Open Project

Op

File.openproject

Collapse to define/stop outline display

Outlinedefs stopoutlining

Edit. Collapse To Definition

Process-wise

P

Debugging. Step Over process

Parameter information

Paraminfo

Edit. Parameter information

Jump

pr

Debug. Jump out

Previous Bookmark

Prevbook

Edit. Previous Bookmark

Print files

Print

file. Printing

The Properties window

Props

View. Properties Window

Stop it

Q

Debugging. Stop Debugging

Repeat

Redo

Edit. Repeat

The Registers window

Registers

Debug. Registers

Run to Cursor

Rtc

Debug. Run to Cursor

Save Selected items

Save

File. Save Selected items

Save All

SaveAll

File. Save All

Save As

SaveAs

File.saveselecteditemsas

Show Script Only View

Scriptonly

View.showscriptonly

Shell Program

Shell

Tools.shell

Stop looking in a file

Stopfind

Edit.findinfiles/stop

Swap anchor points

Swapanchor

Edit. Swap anchor Points

Per-statement

T

Debug. Statement-wise

tab Replace spaces

Tabify

Edit. Tab substitution spaces

The Task List window

TaskList

View. Task List

The Threads Window

Threads

Debugging. Threads

Plain Water Shop

Tileh

Window.tilehorizontally

Tile vertically

Tilev

Window.tilevertically

Toggle Bookmarks

Togglebook

Edit. Toggle Bookmarks

The Toolbox window

Toolbox

View. Toolbox

List Disassembly

U

Debug.ListDisassembly

Convert to uppercase

Ucase

Edit. Convert to Uppercase

Cancel

Undo

Edit. Cancel

Spaces Replace Tabs

Untabify

Edit. Spaces Replace Tabs

The Watch Window

Watch

Debug. Monitoring n

Toggle Auto-line Wrapping

WordWrap

Edit. Toggle Line Wrapping

List of outgoing threads

~

Debug.listthreads

To check the value of the variable VarA, use the Print command:

>debug.print VarA

The question mark (?) is an alias for Debug.Print, so this command can also be written as:

? VarA

Both versions of this command will return the value of the variable VarA.

Input command

The greater than sign (>) appears as a new line prompt at the left edge of the command window. Use the UP ARROW and DOWN ARROW keys to scroll through previously issued commands.

Task

Solution Solutions

Example

Evaluates the value of an expression.

The expression begins with a question mark (?).

? MyVar

Switch to the Immediate window.

Enter immed in the window without the greater than sign (>).

Immed

Switch back to the commands window from the Immediate window.

Enter CMD in the window.

>cmd

The following shortcut keys can help you navigate in command mode.

Operation

Cursor position

Key Bindings

Loops through the list of previously entered commands.

Input line

Up ARROW and DOWN ARROW

Scrolls up the window.

Command Window Contents

CTRL + UP ARROW

Scroll down the window.

Command Window Contents

down ARROW or CTRL + DOWN ARROW

You can copy all or part of the command to the input line by scrolling to the previous command, highlighting all or part of the command, and then pressing ENTER.

Marker mode

When you click any of the preceding rows in the command window, you automatically switch to mark mode. This allows you to select, edit, and copy the text of the previous command as you would in any text editor, and paste it into the current line.

Equal sign (=)

The window used to enter the EvaluateStatement command determines whether the equals sign (=) is interpreted as a comparison operator or an assignment operator.

In the command window, interpret the equals sign (=) as the comparison operator. You cannot use an assignment operator in the command window. For example, if the values of the variables VarA and Varb are not the same, the command

>debug.evaluatestatement (Vara=varb)

will return a value of False.

In contrast, in the Immediate window, the equals sign (=) is interpreted as an assignment operator. For example, the command

>debug.evaluatestatement (Vara=varb)

The variable VarA is assigned the value of the variable Varb.

parameters, switches, and values

Some Visual Studio commands have required and optional parameters, switches, and values. When these commands are processed, some rules are applied. Here is an example of a complex command to illustrate this term.

Edit.replaceinfiles/case/pattern:regex var[1-3]+ Oldpar

In this example,


Edit.ReplaceInFiles is an order.
/case and/pattern:regex are switches (beginning with the slash [/] character)
The regex is the value of the/pattern switch; the/case switch has no value.
var[1-3]+ and Oldpar are parameters.

Any command, argument, switch, or value that contains spaces must be enclosed in double quotation marks.

On the command line, the position of switches and parameters can be interchanged casually, but the shell command is an exception, requiring switches and parameters to appear in a particular order.

Almost every switch supported by the command has two formats: short format (one character) and long format. Multiple short format switches can be combined into a group. For example,/p/g/M can also be represented as/PGM.

If the short format switch is combined into a group, and given a value, the value is applied to each switch. For example,/pgm:123 is equivalent to/p:123/g:123/m:123. If any of the switches in the group do not accept the value, an error occurs.

Escape character

The caret (^) character on the command line indicates that the character immediately followed is interpreted as literal and not as a control character. This can be used to embed a straight quotation mark ("), a space, a forward slash, a caret, or any other character in a parameter or switch value (except for a switch name). For example

>edit.find ^^ T/regex

The caret is the same as in quotation marks or as an extension. If the caret is the last character of the line, it is ignored.

Summary of command Window debug commands for VS2005 (reprint)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.