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

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

Managed Expressions in C++ (VC 2010 調(diào)試)

Posted on 2012-04-24 21:39 RTY 閱讀(625) 評論(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>
            在线一区亚洲| 亚洲第一级黄色片| 亚洲欧美中文在线视频| 在线一区二区日韩| 国产欧美精品一区二区色综合| 午夜精品久久| 久久精品综合| 亚洲精品一二三区| 亚洲深夜福利视频| 国产亚洲精品久久久久久| 狂野欧美一区| 欧美色欧美亚洲另类七区| 欧美一区成人| 欧美大片第1页| 午夜精品一区二区三区在线 | 一区二区激情| 午夜电影亚洲| 亚洲乱码国产乱码精品精可以看| 日韩亚洲一区在线播放| 国产综合一区二区| 亚洲日本成人在线观看| 国产精品视区| 亚洲第一主播视频| 国产欧美日韩在线播放| 欧美高清视频www夜色资源网| 欧美视频第二页| 女人天堂亚洲aⅴ在线观看| 欧美日韩亚洲综合一区| 六月婷婷一区| 国产精品亚洲美女av网站| 欧美激情在线| 狠狠色丁香久久综合频道| 在线天堂一区av电影| 亚洲第一狼人社区| 亚洲欧美一区二区原创| 99精品黄色片免费大全| 久久久久久久高潮| 欧美一区二区成人| 欧美日韩久久久久久| 美女视频网站黄色亚洲| 国产精品网站在线| 亚洲美女免费精品视频在线观看| 黄色成人免费网站| 午夜欧美精品久久久久久久| 在线一区二区视频| 欧美激情1区2区3区| 欧美成人免费小视频| 国产亚洲福利| 午夜精品久久久久久久99水蜜桃| 在线视频亚洲| 欧美日韩网站| 亚洲精品孕妇| 一区二区三区欧美在线观看| 美女脱光内衣内裤视频久久网站| 久久久久网址| 国产一区二区三区免费在线观看| 一区二区三区欧美在线观看| 99视频精品免费观看| 免费永久网站黄欧美| 欧美电影免费观看| 在线播放一区| 免费不卡欧美自拍视频| 欧美国产日韩在线| 最新国产乱人伦偷精品免费网站 | 午夜精品影院在线观看| 性欧美1819性猛交| 国产网站欧美日韩免费精品在线观看| 中日韩在线视频| 欧美一级片在线播放| 国产伦精品一区二区三区四区免费| 亚洲性图久久| 久久国产婷婷国产香蕉| 国产日产欧美a一级在线| 欧美亚洲午夜视频在线观看| 久久看片网站| 亚洲日韩第九十九页| 欧美日韩日本视频| 亚洲已满18点击进入久久| 久久精品国产一区二区电影| 在线播放豆国产99亚洲| 欧美二区在线观看| 99精品久久久| 久久久久久9| 亚洲精品欧美激情| 国产精品成人一区二区三区吃奶| 亚洲欧美日韩视频一区| 美女网站久久| 一本色道久久加勒比88综合| 国产精品日日做人人爱| 久久亚洲精品一区二区| 亚洲美女中文字幕| 久久久久高清| 一本一本久久a久久精品综合麻豆 一本一本久久a久久精品牛牛影视 | 伊人久久大香线| 欧美日韩不卡合集视频| 性一交一乱一区二区洋洋av| 欧美激情国产高清| 午夜性色一区二区三区免费视频| 精品成人久久| 国产精品久久国产精品99gif| 欧美一区二区视频在线观看2020| 亚洲高清不卡av| 欧美伊人久久久久久久久影院| 在线观看三级视频欧美| 国产精品―色哟哟| 欧美成人免费观看| 欧美一区二区国产| 99国产精品久久久久老师| 老司机精品久久| 午夜精品久久一牛影视| 99re8这里有精品热视频免费| 国产婷婷色一区二区三区在线| 欧美精品乱人伦久久久久久| 久久久久久高潮国产精品视| 亚洲私拍自拍| 亚洲精品一区二区三区在线观看| 久久嫩草精品久久久精品| 亚洲一区二区在线| 日韩视频精品| 亚洲国内精品在线| 一区二区三区我不卡| 国产女人精品视频| 欧美性一区二区| 欧美激情视频网站| 欧美jizz19hd性欧美| 久久亚洲精品伦理| 欧美伊人久久大香线蕉综合69| 亚洲夜间福利| 亚洲线精品一区二区三区八戒| 亚洲三级影院| 91久久亚洲| 亚洲国产精品va在线看黑人动漫| 可以看av的网站久久看| 久久亚洲综合网| 久久久久九九九九| 另类激情亚洲| 欧美aⅴ99久久黑人专区| 欧美 日韩 国产一区二区在线视频| 久久精品盗摄| 久久嫩草精品久久久久| 欧美一级大片在线免费观看| 欧美一区影院| 久久精品国产一区二区三| 久久久精品国产一区二区三区| 欧美一区二区三区久久精品茉莉花| 亚洲欧美资源在线| 欧美一区午夜精品| 久久综合色综合88| 欧美r片在线| 亚洲激情电影在线| 亚洲免费观看在线观看| 国产精品99久久99久久久二8 | 美女日韩在线中文字幕| 欧美国产日本高清在线| 欧美日韩精品中文字幕| 国产精品激情| 国产一区二区三区在线观看网站| 在线播放一区| 一本一本久久| 久久国产精品久久精品国产| 麻豆乱码国产一区二区三区| 亚洲国产99精品国自产| 一本色道久久综合狠狠躁篇的优点 | 亚洲高清久久网| 99热免费精品| 欧美在线视频免费播放| 麻豆成人在线播放| 欧美私人啪啪vps| 国产一区二区三区在线观看免费| 亚洲激情成人网| 亚洲欧美在线播放| 欧美国产先锋| 这里是久久伊人| 久久亚洲国产成人| 国产精品久久久久久亚洲调教 | 狠狠色丁香久久综合频道| 亚洲精品一区二区三区蜜桃久| 亚洲欧美bt| 亚洲国产欧美一区二区三区丁香婷| 亚洲视频观看| 欧美freesex8一10精品| 国产欧美在线| 在线视频欧美日韩精品| 老司机免费视频久久| 亚洲网站在线看| 欧美国产精品人人做人人爱| 国产精品一香蕉国产线看观看| 亚洲人成亚洲人成在线观看图片| 欧美亚洲一区二区三区| 亚洲激情二区| 久久午夜精品| 国产日韩一区在线| 亚洲天天影视| 亚洲高清自拍| 久久免费视频在线| 国产亚洲毛片| 小黄鸭精品密入口导航| 99视频精品免费观看| 欧美成人r级一区二区三区| 狠狠色丁香婷婷综合|