青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

posts - 319, comments - 22, trackbacks - 0, articles - 11
  C++博客 :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

Managed Expressions in C++ (VC 2010 調試)

Posted on 2012-04-24 21:39 RTY 閱讀(637) 評論(0)  編輯 收藏 引用 所屬分類: C/C++Windows
Expand
MSDN

Managed Expressions in C++

Visual Studio 2010
This topic has not yet been rated - Rate this topic

 

This topic applies to:

Edition

Visual Basic

C#

F#

C++

Web Developer

Express

Topic does not applyTopic does not applyTopic does not applyTopic appliesTopic does not apply

Pro, Premium, and Ultimate

Topic does not applyTopic does not applyTopic does not applyTopic appliesTopic does not apply

The managed expression evaluator accepts most expressions written in Visual C++. The following topics offer specific information and discuss some of the expression types that are not supported:

  • Identifiers and Types

  • Function Evaluation

  • Operators

  • Overloaded Operators

  • Strings

  • Casts

  • Object Comparison and Assignment

  • typeof and sizeof Operators

  • Boxing

  • Property Evaluation

The expression evaluator ignores access qualifiers, publicprotectedinternal, and private. You can call a private method from the Watch window, for example.

The expression evaluator performs all evaluations in an implicit unsafe context, whether the code being executed is safe or unsafe.

The debugger uses autoexpand rules to display the contents of a data type in meaningful form. If you need to, you can add custom autoexpand elements to display your own custom data types. For more information, see Displaying Elements of a Custom Data Type.

Debugger expressions can use any identifier visible within the current scope. If the debugger is halted in function magh, for example, you can use any identifier visible withinmagh, including constants, variable names, and function names.

The debugger can correctly display any variable of a primitiveenum, or intrinsic type. For variables of class type, the debugger correctly displays the value based on the derived-most type. If you have an object leo of type lion, derived from type cat, you can evaluate leo.clawlength and get the correct value for an object of type lion.

You can assign a new value to any left-hand-side expression that is an l-value of a primitive type. Assignments to class and array types are not supported.

The debugger supports the evaluation of functions, including overloaded functions. Therefore, you can enter either of the following expressions, and the debugger will call the correct version of the overloaded function:

kanga () kanga (roo) 

Evaluating a function in the debugger actually calls and executes the code for that function. If the function has side effects, such as allocating memory or changing the value of a global variable, evaluating the function in a debugger window will change the state of your program, which can produce unexpected results.

When you set a breakpoint on an overloaded function, the location of the breakpoint depends on how you specify the function. If you specify only the function name, the debugger will set one breakpoint on each overload of that function name. If you specify the complete signature, the function name and full argument list, the debugger sets one breakpoint on the specified overload.

The debugger correctly evaluates most built-in operators, including:

  • Relational operators: (expr1 >expr2expr1 < expr2expr1 <= expr2expr1 => expr2expr1 == expr2expr1 != expr2).

  • Boolean operators: (expr1 && expr2expr1 || expr2).

  • Conditional operator: (expr1 ? expr2 : expr3) .

  • Arithmetical operators: ( expr1 + expr2expr1 - expr2,expr1 * expr2expr1 / expr2expr1 % expr2).

  • Bitwise operators: (expr1 & expr2expr1 ^ expr2expr1 | expr2expr1 ~ expr2).

  • Shift operators. Examples: (expr1 >> expr2expr1 << expr2expr1 >>> expr2).

  • Assignment operators: ( lvalue = expr2lvalue *= expr2lvalue /= expr2lvalue %= expr2lvalue += expr2lvalue -= expr2lvalue <<= expr2lvalue>>=expr2lvalue &= expr2lvalue ^= expr2lvalue |= expr2 ).

  • Unary operators. Examples: ( + expr1, - expr1expr1++, ++ expr1expr1--, -- expr1 ).

You can use the comma operator to enter a series of expressions: expr1expr2,expr3.

Most overloaded operators work in the debugger.

Overloaded infix operators +, -, /, %, and & work:

  • expr1 + expr2

  • expr1 expr2

  • expr1 / expr2

  • expr1 % expr2

  • expr1 & expr2

Overloaded infix operators =, &&, &, ||, |, and ^ do not work:

  • expr1 = expr2

  • expr1 && expr2

  • expr1 & expr2

  • expr1 || expr2

  • expr1 | expr2

  • expr1 ^ expr2

Overloaded relational operators ==, !=, >, <, >=, and <= do not work for C++:

  • expr1 == expr2

  • expr1 != expr2

  • expr1 > expr2

  • expr1 < expr2

  • expr1 >= expr2

  • expr1 <= expr2

Overloaded infix operators |, ^, <<, >>, >, <, >=, and <= do not work:

  • expr1 | expr2

  • expr1 ^ expr2

  • expr1 << expr2

  • expr1 >> expr2

  • expr1 > expr2

  • expr1 < expr2

  • expr1 >= expr2

  • expr1 <= expr2

Overloaded prefix operators +, -, ++, --, !, and ~ work:

  • + expr1

  • - expr1

  • ++ expr1

  • -- expr1

  • ! expr1

  • ~ expr1

Overloaded suffix operators ++ and -- work:

  • expr1++

  • expr1--

The overload operator [] works:

  • x[expr2]

The C++ expression evaluator uses C#-style syntax for multidimensional arrays. For example:

c[0,0]

Using normal C++ syntax generates an error:

c[0][0] error: index '0' out of bound for pointer/array 'c'

The debugger recognizes the indexed operator when it is used with strings as well as arrays. So, for example, you can enter:

"hello world"[0]

The Watch window will display the correct value:

'h'

Simple cast expressions work in the debugger:

(A)x

Casts that involve pointers will not work in the debugger:

User-defined casts do not work in the debugger for Visual C++.

Object comparison and assignment in the debugger does not work for Visual C++.

The debugger supports the typeof and sizeof operator by transforming it into the equivalent .NET Framework function.

typeof ( expression )

is transformed into:

System.Type.GetType(expression )

The debugger then evaluates this transformed expression.

The debugger does not support the sizeof operator.

The debugger expression evaluator does not support boxing and unboxing in Visual C++. For more information, see Boxing and Unboxing. If you have an integer variable ithat has been converted into an object through boxing, the debugger will evaluate i as an integer, not as an object. The results may not be what you expect.

The debugger can evaluate properties in any variable window. However, evaluating a property in the debugger can have side effects that produce unexpected and undesired results. To protect against side effects caused by accidental evaluation, you can turn property evaluation off in the Options dialog box.

You cannot call WebMethods from debugger windows.

Did you find this helpful?  
Community Content Add
Annotations FAQ
Advertisement
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            亚洲日韩欧美视频一区| 欧美性猛交一区二区三区精品| 亚洲精品视频二区| 久久大综合网| 午夜精品999| 欧美日韩国产欧| 欧美va天堂| 国产一区二区三区四区三区四| 亚洲精品久久嫩草网站秘色| 在线成人激情视频| 久久精品一区二区国产| 欧美一区二区三区久久精品茉莉花| 欧美激情综合色| 欧美福利视频在线| 影音先锋成人资源站| 欧美伊人久久久久久午夜久久久久| 亚洲素人一区二区| 欧美日韩p片| 99视频精品免费观看| 99re66热这里只有精品3直播| 久久亚洲国产精品日日av夜夜| 久久九九免费视频| 国产一区二区三区在线观看精品| 亚洲一卡二卡三卡四卡五卡| 亚洲免费一级电影| 国产精品www| 亚洲一区二区三区高清| 午夜精品久久久久久久久久久久 | 欧美激情一区二区三区在线视频观看 | 日韩午夜激情| 欧美日韩福利| 一区二区三区视频在线观看| 亚洲制服av| 国产日产欧产精品推荐色 | 亚洲高清资源| 一区二区三区日韩欧美| 欧美三级午夜理伦三级中视频| 亚洲视频一区在线观看| 香蕉精品999视频一区二区 | 国产精品成人一区二区三区吃奶| 亚洲精品一区二区三区99| 女生裸体视频一区二区三区| 亚洲人成亚洲人成在线观看| 亚洲一二三区在线| 国产免费观看久久黄| 久久久精品国产99久久精品芒果| 欧美1区2区视频| 一本色道久久综合精品竹菊 | 欧美日韩国产在线一区| 在线亚洲一区观看| 久久精品av麻豆的观看方式 | 性欧美1819性猛交| 伊人久久婷婷| 欧美日韩视频在线一区二区| 亚洲欧美久久| 欧美激情一区二区三区成人| 亚洲一区免费在线观看| 在线观看视频欧美| 欧美视频在线免费看| 久久国产精品免费一区| 亚洲精品一区在线观看| 午夜视频一区| 最新成人av在线| 国产欧美一区二区三区久久| 欧美**字幕| 亚洲欧美中文日韩在线| 亚洲电影在线看| 久久精品国产精品亚洲| 9色精品在线| 狠狠久久亚洲欧美| 国产精品久久久对白| 免费毛片一区二区三区久久久| 在线亚洲国产精品网站| 亚洲国产福利在线| 久久久久久穴| 亚洲一区视频在线| 亚洲日本中文字幕免费在线不卡| 国产欧美精品一区二区三区介绍| 欧美激情一区二区三区高清视频 | 国产精品推荐精品| 欧美日韩国产亚洲一区| 裸体一区二区| 久久激情五月激情| 亚洲在线成人| 一区二区三区.www| 亚洲精品一区二区三区在线观看 | 欧美日韩激情小视频| 久久久久久久网站| 亚洲国产一区二区三区a毛片| 欧美一区二区三区四区在线观看地址| 亚洲开发第一视频在线播放| 激情久久久久| 美女久久一区| 久久av一区二区| 亚洲欧洲99久久| 亚洲视频中文| 一区二区三区成人精品| 一本色道久久加勒比88综合| 亚洲国产裸拍裸体视频在线观看乱了| 久久偷窥视频| 久久亚洲精品欧美| 久久久久久午夜| 久久久久国产一区二区三区| 销魂美女一区二区三区视频在线| 亚洲专区在线| 亚洲欧美在线免费观看| 亚洲特级毛片| 亚洲欧美另类在线观看| 亚洲欧洲99久久| 午夜一级久久| 久久精品国产一区二区三区免费看| 亚洲男同1069视频| 午夜久久黄色| 久久国产精品久久国产精品| 久久不见久久见免费视频1| 久久福利毛片| 欧美~级网站不卡| 亚洲成色www8888| 欧美亚洲网站| 久久国产黑丝| 欧美国产精品中文字幕| 亚洲国产精品成人一区二区| 亚洲激情一区| 在线午夜精品| 久久爱www久久做| 老鸭窝亚洲一区二区三区| 欧美成人按摩| 国产精品久久久久久久久免费| 国产精品日韩欧美大师| 国产综合视频在线观看| 亚洲高清在线| 亚洲尤物在线| 久久一区二区视频| 亚洲破处大片| 亚洲欧美国产高清| 老司机精品视频一区二区三区| 欧美日韩国产麻豆| 国产一区二区av| 99精品热视频只有精品10| 亚洲女同同性videoxma| 久久久亚洲影院你懂的| 91久久久精品| 久久精品女人| 欧美日韩一区二区视频在线| 国产一区在线免费观看| 亚洲人成绝费网站色www| 亚洲欧美日韩天堂| 亚洲国产精品嫩草影院| 亚洲尤物在线| 欧美啪啪一区| 在线成人激情视频| 亚洲欧美日韩国产另类专区| 快播亚洲色图| 亚洲网在线观看| 欧美成人精品一区二区三区| 国产精品欧美日韩| 亚洲美女在线一区| 久久久亚洲影院你懂的| 一区二区三区黄色| 欧美成人黑人xx视频免费观看| 国产精品一香蕉国产线看观看 | 欧美成人黄色小视频| 亚洲一区网站| 欧美日韩另类一区| 最新69国产成人精品视频免费| 欧美一区二区网站| aa级大片欧美| 欧美激情第五页| 1024亚洲| 久久久久久亚洲综合影院红桃| 国产精品99久久久久久久久久久久| 久久蜜桃香蕉精品一区二区三区| 国产精品久久久久一区二区三区共 | 国产乱码精品一区二区三区五月婷| 亚洲日本无吗高清不卡| 久久九九免费视频| 亚洲欧美国产高清| 国产精品国色综合久久| 日韩小视频在线观看| 亚洲第一综合天堂另类专| 久久精品国产一区二区三区| 国产精品私人影院| 性色av一区二区三区| 一区二区高清视频| 欧美天堂在线观看| 亚洲午夜精品一区二区| 亚洲精品男同| 欧美日韩午夜视频在线观看| 日韩一级免费观看| 亚洲三级电影全部在线观看高清| 久热精品在线视频| 亚洲高清不卡av| 欧美阿v一级看视频| 久久久中精品2020中文| 在线观看视频亚洲| 免费在线观看一区二区| 鲁大师影院一区二区三区| 最新成人av在线| 亚洲剧情一区二区| 欧美午夜精品电影|