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

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>
            久久久久久穴| 欧美日韩国语| 国模精品一区二区三区色天香| 午夜精品国产精品大乳美女| 在线性视频日韩欧美| 国产精品久久久久免费a∨大胸| 亚洲一区二区三区四区五区午夜 | 红桃视频亚洲| 嫩草国产精品入口| 欧美二区在线播放| 一区二区三区.www| 亚洲免费婷婷| 亚洲成色777777女色窝| 亚洲片在线资源| 国产精品久久久久aaaa樱花| 欧美一区二区三区视频免费| 久久人人97超碰国产公开结果| 亚洲第一福利视频| 99精品99| 伊人久久亚洲热| 日韩一区二区精品在线观看| 国产欧美欧美| 亚洲欧洲日产国产网站| 国产精品精品视频| 久久伊人精品天天| 欧美丝袜一区二区| 麻豆精品网站| 国产精品一区二区在线观看网站| 免费成人毛片| 国产精品久久一区二区三区| 免费成人你懂的| 国产精品稀缺呦系列在线| 男男成人高潮片免费网站| 欧美视频四区| 亚洲高清毛片| 国语精品中文字幕| 中文日韩电影网站| 亚洲精品乱码久久久久| 欧美一区二区三区视频在线| 中文国产成人精品| 模特精品在线| 麻豆精品网站| 国产综合色产| 亚洲免费在线精品一区| 99一区二区| 麻豆成人在线观看| 久久久亚洲人| 国产精品久久久久久影院8一贰佰 国产精品久久久久久影视 | 久久久久国产精品人| 亚洲一区三区电影在线观看| 欧美88av| 欧美国产一区二区在线观看| 国产在线播放一区二区三区| 一区二区三区四区国产精品| 艳妇臀荡乳欲伦亚洲一区| 久久一区二区三区国产精品| 久久xxxx| 国产日产精品一区二区三区四区的观看方式 | 亚洲男人的天堂在线aⅴ视频| 亚洲精品欧美| 蜜臀久久久99精品久久久久久| 久久精品人人做人人爽| 国产精品青草综合久久久久99 | 欧美韩国日本一区| 伊人久久久大香线蕉综合直播| 亚洲欧美经典视频| 亚洲在线中文字幕| 国产精品大片免费观看| 99www免费人成精品| 一本色道久久综合一区| 欧美精品一区二区在线播放| 亚洲精品视频啊美女在线直播| 亚洲美女在线国产| 欧美日韩一本到| 在线视频一区二区| 性欧美激情精品| 国产亚洲欧美激情| 久久精品亚洲一区| 欧美搞黄网站| 99re6热在线精品视频播放速度| 欧美福利视频| 中文在线不卡| 久久久国产视频91| 亚洲国产日韩欧美在线图片| 欧美大片第1页| 一本到12不卡视频在线dvd| 午夜精品久久久久影视 | 欧美精品一区三区| 中日韩男男gay无套| 欧美一区二区精品在线| 国产又爽又黄的激情精品视频| 久久久久一区二区| 亚洲精品日韩激情在线电影| 亚洲欧美综合v| 尤物yw午夜国产精品视频明星| 欧美v亚洲v综合ⅴ国产v| 99国产精品自拍| 久久久精彩视频| 洋洋av久久久久久久一区| 国产精品看片你懂得| 久久福利电影| 日韩网站在线观看| 久久亚洲图片| 亚洲午夜电影在线观看| 狠狠入ady亚洲精品经典电影| 欧美高清视频一区| 亚洲欧美视频在线观看视频| 欧美成人午夜激情在线| 亚洲欧美日韩综合aⅴ视频| 韩国女主播一区| 欧美日韩一区二区高清| 久久欧美中文字幕| 亚洲综合色噜噜狠狠| 亚洲高清视频中文字幕| 久久国产精品久久国产精品| 亚洲精品国产视频| 国产在线精品一区二区中文| 欧美日韩精品久久| 久久久爽爽爽美女图片| 亚洲在线观看免费| 亚洲精品一区二区三区不| 玖玖玖国产精品| 欧美在线视频一区二区| 中文精品99久久国产香蕉| 亚洲高清在线观看一区| 国产视频在线观看一区二区| 欧美视频中文字幕在线| 欧美精品福利在线| 美女黄色成人网| 久久久精品国产免大香伊| 亚洲欧美国产日韩中文字幕| 日韩一级网站| 99精品国产在热久久婷婷| 欧美激情精品久久久六区热门 | 欧美激情一区二区三区成人 | 亚洲理伦电影| 亚洲国产精选| 在线国产亚洲欧美| 国内精品国语自产拍在线观看| 国产精品久久久久久久一区探花| 欧美黑人一区二区三区| 欧美激情久久久久久| 欧美成人国产| 欧美国产欧美综合| 欧美精品久久久久久久免费观看 | 一区二区三区免费网站| 日韩一区二区精品葵司在线| 亚洲日本精品国产第一区| 91久久中文字幕| 亚洲看片免费| 亚洲最新中文字幕| 亚洲午夜久久久| 亚洲欧美日韩一区在线| 性欧美大战久久久久久久免费观看| 亚洲无限乱码一二三四麻| 亚洲欧美激情一区二区| 亚洲欧美日韩精品一区二区| 性伦欧美刺激片在线观看| 欧美一乱一性一交一视频| 久久国产综合精品| 久久琪琪电影院| 欧美激情片在线观看| 欧美日韩精品伦理作品在线免费观看| 欧美精品乱码久久久久久按摩| 欧美日韩黄色大片| 国产啪精品视频| 亚洲第一狼人社区| 99re热这里只有精品视频| 亚洲淫片在线视频| 久久久久久夜| 亚洲日本欧美天堂| 午夜伦欧美伦电影理论片| 久久精品一区二区三区不卡| 女人色偷偷aa久久天堂| 欧美日韩一区二区三区免费| 国产精品一区二区久激情瑜伽| 一区二区三区在线视频观看| 99综合在线| 久久国内精品自在自线400部| 美女国内精品自产拍在线播放| 亚洲国产精品一区二区www在线| 亚洲视屏一区| 麻豆免费精品视频| 国产精品视频内| 亚洲欧洲日本国产| 欧美一区二区免费观在线| 蜜臀a∨国产成人精品| 一本色道久久88亚洲综合88| 久久婷婷国产麻豆91天堂| 欧美午夜精品久久久久久浪潮 | 欧美巨乳在线| 伊人久久婷婷色综合98网| 亚洲性感美女99在线| 免费观看国产成人| 亚洲综合清纯丝袜自拍| 欧美阿v一级看视频| 国内精品免费在线观看| 亚洲一二三区精品| 亚洲第一在线综合在线| 欧美在线视频日韩|