C # pseudo variables during debugging

Source: Internet
Author: User

In C ++, you can view the return value of the function through @ eax.

In C #, according to msdn, you can also. The following pseudo variables are supported by vs2012:

Pseudo Variable

Function

$ Handles

Displays the number of handles allocated in the application.

$ Vframe

Displays the current stack frame address.

$ Tid

Displays the thread ID of the current thread.

$ ENV

Display the environment block in the string browser.

$ Nearline

Displays the command line string of the Startup Program.

$ PID

Displays the process ID.

$
Register name

Or

@
Register name

Display registerRegister name.

Generally, you only need to enter the register name to display the register content.
This syntax is required only when the register name is overloaded with variable names. If the register name is the same as a variable name in the current range, the debugger interprets the name as a variable name.
In this case, you need to use $Register nameOr
@Register name.

$ CLK

Display the time in the form of a clock.

$ User

Displays the account information of the account where the application is running.
Password information is not displayed for security reasons.

In C # and Visual Basic, you can use the following pseudo variables:

Pseudo Variable

Function

$ Exception

Displays information about the latest exception.
If no exception occurs, $ exception is calculated and an error message is displayed.

In Visual C # only, if "Exception Assistant" is disabled, $ exception is automatically added"Local variable"Window.

$ User

Displays the account information of the account where the application is running.
Password information is not displayed for security reasons.

In Visual Basic, you can use the pseudo variables shown in the following table:

Pseudo Variable

Function

$ Delete or
$ Delete

Delete"Instant"The implicit variable created in the window.
The syntax is $ Delete,
VariableOr $ Delete,
Variable.

$ Objectids or
$ Listobjectids

Displays the IDs of all activity objects as sublevels of the specified expression.
The syntax is $ objectid,
ExpressionOr $ listobjectids,
Expression.

$
N#

The Display object ID is equalN.

$ Dynamic

Display the special object used to implement idynamicmetaobjectprovider"Dynamic View"Node.
Interface. Syntax: $ dynamic,
Object.
This function is only applicable to code that uses. NET Framework Version 4. See
Dynamic View.

 

However, in my actual application, I found that only $ user can work normally, and most of others cannot.

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.