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

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

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

Posted on 2012-04-24 21:39 RTY 閱讀(634) 評論(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>
            麻豆久久久9性大片| 美女91精品| 国产欧美一区二区三区视频| 在线亚洲一区二区| 午夜精品久久久久久久男人的天堂| 国产精品久久久久影院色老大| 午夜精品三级视频福利| 久久在线免费观看视频| 亚洲国产成人在线播放| 欧美精品激情在线| 亚洲永久免费精品| 理论片一区二区在线| 99热这里只有精品8| 国产精品亚洲成人| 麻豆精品在线视频| 亚洲激情小视频| 欧美亚洲一级片| 亚洲第一搞黄网站| 国产精品盗摄一区二区三区| 久久精品国产99| 99亚洲视频| 久久米奇亚洲| 亚洲视频一区在线| 在线观看日韩av电影| 日韩视频国产视频| 国产欧美日韩专区发布| 欧美超级免费视 在线| 亚洲一区在线免费观看| 欧美黄色日本| 久久国产精品99精品国产| 亚洲卡通欧美制服中文| 国产亚洲在线| 国产精品久久久久久久久久久久久久 | 韩日精品视频| 欧美日韩亚洲另类| 免费一区二区三区| 午夜久久福利| 亚洲午夜免费视频| 亚洲国产日韩一区| 久久日韩粉嫩一区二区三区| 国产精品99久久99久久久二8 | 亚洲精品美女91| 久久久91精品国产一区二区精品| av成人福利| 亚洲国产清纯| 国产一区三区三区| 国产精品乱码久久久久久| 欧美大片18| 久久综合久久久| 久久精品国产免费看久久精品| 国产精品99久久久久久久vr| 亚洲国产精品一区二区www在线 | 亚洲成人自拍视频| 久久偷窥视频| 久久久国产精品一区二区三区| 亚洲综合清纯丝袜自拍| a91a精品视频在线观看| 亚洲国内精品| 亚洲激情另类| 娇妻被交换粗又大又硬视频欧美| 国产精品一卡| 国产欧美一区二区精品秋霞影院 | 国产深夜精品福利| 国产精品久久久久久久免费软件| 欧美日韩久久不卡| 欧美人与禽猛交乱配视频| 欧美激情导航| 欧美精品日韩| 欧美日韩亚洲网| 国产精品av久久久久久麻豆网| 欧美日韩国产综合久久| 欧美区一区二区三区| 欧美精品videossex性护士| 欧美 日韩 国产 一区| 美女黄毛**国产精品啪啪| 久久永久免费| 美女日韩在线中文字幕| 欧美成人激情在线| 欧美激情a∨在线视频播放| 欧美激情一区二区三区| 欧美日韩成人在线播放| 欧美视频在线观看免费| 国产麻豆视频精品| 国产日韩在线一区| 伊人成人在线视频| 亚洲国产视频a| 亚洲毛片视频| 午夜伦欧美伦电影理论片| 欧美在线日韩| 免费高清在线一区| 亚洲欧洲午夜| 亚洲图片欧美午夜| 欧美一区视频在线| 欧美wwwwww| 国产精品高清在线| 激情久久久久久久| 日韩香蕉视频| 欧美一级片在线播放| 美女诱惑黄网站一区| 亚洲欧洲日本mm| 午夜精品福利一区二区蜜股av| 久久精品免视看| 欧美美女操人视频| 国产亚洲激情视频在线| 亚洲激情视频| 午夜天堂精品久久久久| 玖玖在线精品| 日韩一级黄色片| 久久久不卡网国产精品一区| 欧美精品一区视频| 国产日韩一区二区三区在线| 亚洲人成在线观看网站高清| 亚洲欧美三级在线| 亚洲第一久久影院| 亚洲欧美视频| 欧美久久99| 黑丝一区二区| 亚洲免费视频观看| 欧美国产日韩免费| 午夜精品久久久久久久99水蜜桃| 欧美成人午夜77777| 国产精品一区2区| 一区二区三区视频在线观看| 久久久综合视频| av成人天堂| 欧美成人按摩| 黑人巨大精品欧美黑白配亚洲| 亚洲网站在线播放| 亚洲成人中文| 久久精品国产视频| 国产精品免费网站在线观看| 亚洲韩国日本中文字幕| 久久久久久欧美| 亚洲视屏一区| 欧美日韩免费精品| 亚洲日韩欧美视频一区| 鲁大师影院一区二区三区| 亚洲一区二区三区在线播放| 欧美精品免费观看二区| 亚洲国产精品一区二区www| 久久精品观看| 亚洲欧美另类综合偷拍| 欧美日韩在线三区| 日韩一级精品| 亚洲高清影视| 免费在线成人| 在线观看视频一区二区欧美日韩| 久久精品人人做人人爽| 亚洲一区二区三区免费视频 | 亚洲一区二区动漫| 亚洲激情社区| 欧美韩日一区二区| 亚洲破处大片| 欧美激情一区二区三区不卡| 久久婷婷人人澡人人喊人人爽 | 亚洲激情欧美激情| 模特精品在线| 欧美好骚综合网| 免费日韩av| 亚洲国产欧洲综合997久久| 欧美mv日韩mv国产网站| 久久亚洲影音av资源网| 激情自拍一区| 欧美韩国日本综合| 欧美成人亚洲| 亚洲视频网在线直播| 亚洲精品一区二区三区不| 欧美日本久久| 亚洲伊人久久综合| 亚洲欧美日韩国产成人| 国产亚洲精品美女| 老司机精品导航| 欧美高清视频一区二区三区在线观看 | 久久久久久网址| 亚洲黄网站在线观看| 亚洲欧洲在线免费| 欧美午夜宅男影院| 性欧美精品高清| 久久成人亚洲| 亚洲人成亚洲人成在线观看| 日韩图片一区| 国产视频精品xxxx| 欧美福利视频一区| 欧美日韩亚洲成人| 久久www成人_看片免费不卡| 久久久久国产成人精品亚洲午夜| 亚洲国产婷婷香蕉久久久久久99| 亚洲国产精品久久久久秋霞不卡| 欧美日韩亚洲网| 久久久99国产精品免费| 免费看的黄色欧美网站| 亚洲综合另类| 久久这里有精品视频| 一区二区免费在线观看| 午夜亚洲福利| 亚洲免费久久| 欧美一区二区三区播放老司机| 亚洲激情视频在线| 亚洲自拍偷拍视频| 亚洲国产视频a|