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

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>
            一个人看的www久久| 一本大道久久精品懂色aⅴ| 午夜国产欧美理论在线播放| 99精品欧美一区二区三区综合在线 | 国产精品高精视频免费| 亚洲欧美日韩一区二区三区在线观看 | 亚洲高清123| 亚洲精品国产精品久久清纯直播| 快射av在线播放一区| 亚洲国产日韩精品| 日韩视频不卡中文| 国产一级久久| 欧美好吊妞视频| 欧美伦理a级免费电影| 欧美一区二区三区在线观看| 久久精品国产亚洲高清剧情介绍| 亚洲高清二区| 国产精品99久久久久久www| 国产日韩av一区二区| 亚洲成人在线视频网站| 国产精品一区免费观看| 欧美二区乱c少妇| 欧美天堂亚洲电影院在线观看| 欧美在线播放高清精品| 欧美gay视频| 久久国产88| 欧美精品www| 久久久久久高潮国产精品视| 欧美精品 日韩| 久久久免费精品| 欧美日韩亚洲成人| 免费在线日韩av| 国产精品黄色在线观看| 亚洲国产成人tv| 国产欧美日韩免费看aⅴ视频| 亚洲国产精品久久久久婷婷884 | 亚洲精品国产精品久久清纯直播| 午夜精品免费视频| 洋洋av久久久久久久一区| 久久国产欧美精品| 亚洲欧美激情视频| 欧美日本免费| 亚洲国产成人午夜在线一区| 国产精品夜夜夜| 亚洲片国产一区一级在线观看| 国产综合激情| 午夜久久久久久| 日韩视频中午一区| 欧美aa国产视频| 欧美wwwwww| 影音先锋日韩有码| 久久成人一区| 久久精品亚洲一区二区三区浴池| 欧美午夜激情在线| 夜夜嗨av一区二区三区四区| 99国产精品99久久久久久粉嫩| 久久综合亚州| 欧美激情一区二区三级高清视频| 在线日本欧美| 美女视频网站黄色亚洲| 欧美风情在线| 亚洲精品久久久久久久久| 蜜臀99久久精品久久久久久软件| 久久综合色8888| 一区二区三区在线观看欧美| 久久久久青草大香线综合精品| 久久精品一级爱片| 在线观看欧美| 欧美国产日本韩| 亚洲精品国产精品乱码不99按摩 | 99热在这里有精品免费| 欧美黄色一区二区| 亚洲精品美女久久久久| aa级大片欧美三级| 国产精品爱久久久久久久| 99一区二区| 久久国产88| 亚洲国产成人久久综合| 欧美人成网站| 亚洲男人第一网站| 久久国产天堂福利天堂| 韩国福利一区| 欧美成人午夜剧场免费观看| 亚洲精品一区二区在线观看| 一区二区不卡在线视频 午夜欧美不卡在 | 亚洲伦理久久| 亚洲一区在线观看免费观看电影高清| 欧美日韩综合在线免费观看| 亚洲在线一区| 久久久久久9| 亚洲精品国产精品久久清纯直播| 欧美日韩精品免费看| 亚洲欧美日韩在线播放| 欧美韩国在线| 一本色道久久88精品综合| 欧美日韩在线免费| 久久成人免费网| 日韩午夜中文字幕| 久久嫩草精品久久久久| 夜夜精品视频| 国产最新精品精品你懂的| 久久综合国产精品台湾中文娱乐网 | 欧美日韩ab| 午夜精品区一区二区三| 亚洲国产另类久久久精品极度| 亚洲一级网站| 一区在线播放| 国产精品美女久久久浪潮软件| 久久亚洲视频| 欧美在线free| 一区二区三区免费网站| 久久综合久久综合这里只有精品| 一区二区三区回区在观看免费视频| 国产性做久久久久久| 欧美精品免费视频| 久久天堂成人| 亚洲视频1区2区| 亚洲第一精品福利| 久久精品噜噜噜成人av农村| 9久re热视频在线精品| 国产日韩一区二区| 国产精品igao视频网网址不卡日韩 | 亚洲一区在线播放| 亚洲另类自拍| 亚洲黄色天堂| 亚洲成在人线av| 国产乱子伦一区二区三区国色天香| 欧美激情精品久久久久久| 欧美一区二区啪啪| 这里只有精品视频| 日韩图片一区| 亚洲精品日韩久久| 久久视频一区| 久久aⅴ国产欧美74aaa| 亚洲视频一起| 亚洲一级在线| 亚洲一区二区三区777| 艳女tv在线观看国产一区| 亚洲区国产区| 亚洲人成亚洲人成在线观看| 亚洲欧洲午夜| 亚洲裸体在线观看| 亚洲片区在线| 一本色道久久| 亚洲制服av| 性欧美大战久久久久久久免费观看| 一区二区三欧美| 亚洲婷婷免费| 欧美一区二视频| 午夜精品99久久免费| 亚洲欧美文学| 久久精品国产一区二区三区| 久久久久国产精品午夜一区| 久久综合伊人77777| 欧美成人按摩| 亚洲福利一区| 一区二区三区 在线观看视| 一区二区三区四区蜜桃| 亚洲男人影院| 久久久久九九视频| 欧美成人综合一区| 欧美色偷偷大香| 国产日韩欧美一区二区三区四区| 黄色另类av| 亚洲每日更新| 欧美一区二区三区精品| 久久久一二三| 亚洲欧洲日韩综合二区| 亚洲小说欧美另类社区| 欧美一区二区三区视频免费播放| 久久综合激情| 国产精品久久久久av免费| 韩国精品久久久999| 亚洲精品一二区| 欧美在线播放一区二区| 亚洲国产精品成人综合色在线婷婷| 一区二区不卡在线视频 午夜欧美不卡在 | 亚洲第一中文字幕在线观看| 一二美女精品欧洲| 久久免费视频网| 夜夜嗨av一区二区三区| 久久久久欧美| 国产精品美女一区二区在线观看| 在线观看视频一区二区| 亚洲一区二区三区777| 欧美成人自拍| 午夜天堂精品久久久久| 欧美精品一二三| 精品91免费| 亚洲欧美在线免费观看| 欧美顶级大胆免费视频| 日韩一区二区电影网| 久久人人爽人人爽| 国产亚洲人成网站在线观看| 中文国产成人精品久久一| 免费视频一区| 欧美一区二区三区视频| 国产精品久久久久高潮| av成人动漫| 亚洲福利精品|