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

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

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

Posted on 2012-04-24 21:39 RTY 閱讀(638) 評論(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页| 国产日韩欧美一区二区| 午夜精品久久| 久久综合国产精品| 亚洲第一免费播放区| 欧美高清视频在线| 在线亚洲美日韩| 久久精品伊人| 亚洲精品乱码久久久久| 欧美午夜不卡| 久久国产高清| 亚洲日韩欧美视频| 欧美一区二区女人| 亚洲电影免费观看高清完整版在线 | 久久精品国产99| 在线观看亚洲| 国产精品成人久久久久| 欧美影院在线播放| 亚洲人成啪啪网站| 久久精品国产久精国产思思| 亚洲成人在线网站| 国产精品jvid在线观看蜜臀| 欧美在线视频网站| 日韩一级欧洲| 免费久久精品视频| 午夜精彩视频在线观看不卡| 亚洲成人在线视频播放| 国产精品高清免费在线观看| 久久综合九色综合欧美狠狠| 亚洲午夜激情网页| 亚洲国产精品va在线观看黑人| 亚洲综合三区| 亚洲伦理久久| 一区二区三区在线观看欧美| 欧美日韩综合精品| 久久久久久久一区| 亚洲欧美精品suv| 亚洲国产毛片完整版| 亚洲午夜视频在线| 亚洲精品激情| 狠狠久久亚洲欧美专区| 欧美日韩综合网| 欧美电影电视剧在线观看| 欧美在线看片| 亚洲午夜精品网| 亚洲精一区二区三区| 免费在线播放第一区高清av| 久久av二区| 亚洲自拍都市欧美小说| 日韩午夜中文字幕| 亚洲激情精品| 亚洲国产精品久久| 一区二区三区在线免费视频| 国产美女精品免费电影| 欧美午夜www高清视频| 欧美另类videos死尸| 玖玖玖国产精品| 可以看av的网站久久看| 欧美在线观看视频一区二区| 久久九九精品99国产精品| 亚洲老板91色精品久久| 免费在线观看日韩欧美| 久久久久久国产精品一区| 午夜天堂精品久久久久| 亚洲在线视频一区| 亚洲校园激情| 亚洲欧美日韩成人| 亚洲一区二区视频在线| 亚洲视频久久| 宅男精品视频| 亚洲一区日韩在线| 亚洲一区二区三区免费在线观看| 亚洲色图综合久久| 亚洲欧美999| 欧美在线高清| 久久综合久久综合九色| 欧美不卡视频一区发布| 欧美成va人片在线观看| 欧美高清在线播放| 亚洲欧洲精品一区二区三区不卡 | 亚洲国产精品久久| 亚洲欧洲日韩在线| 99精品欧美一区二区三区 | 欧美成人精品在线| 欧美国产免费| 欧美日韩视频在线一区二区 | 久久久国产精品亚洲一区| 久久精品主播| 欧美 日韩 国产在线| 欧美精品123区| 欧美午夜视频| 国产视频精品网| 在线观看视频免费一区二区三区| 亚洲激情电影在线| 亚洲免费视频成人| 久久综合久色欧美综合狠狠| 欧美福利电影在线观看| 99精品免费| 久久精彩免费视频| 欧美激情第4页| 国产精品女人网站| 在线观看欧美| 亚洲视频综合在线| 久久久7777| 91久久久久| 午夜精品久久久久久99热| 久久亚洲风情| 国产精品国产馆在线真实露脸| 国产一级揄自揄精品视频| 亚洲激情在线观看视频免费| 一本色道久久综合亚洲精品婷婷 | 国产精品一国产精品k频道56| 国产一区高清视频| 99一区二区| 久久婷婷国产麻豆91天堂| 亚洲人成人99网站| 久久精品国产欧美亚洲人人爽| 欧美激情一区二区| 国产欧美日韩一区二区三区在线观看| 亚洲二区在线视频| 欧美一区二区三区四区夜夜大片| 欧美韩日一区二区三区| 亚洲永久在线| 欧美日韩国产精品一区| 精品91久久久久| 亚洲欧美伊人| 亚洲三级视频| 老妇喷水一区二区三区| 国产精品五月天| av成人免费在线| 欧美电影免费网站| 午夜在线一区二区| 欧美午夜片在线观看| 亚洲精品激情| 欧美高潮视频| 久久久久国产免费免费| 国产区精品视频| 亚洲一区自拍| 日韩亚洲欧美在线观看| 欧美va亚洲va日韩∨a综合色| 狠狠88综合久久久久综合网| 欧美一二三视频| 国产精品99久久久久久久vr| 欧美国产日韩xxxxx| 亚洲第一福利视频| 久久久噜噜噜久久人人看| 亚洲一区二区三区高清| 欧美午夜精品久久久久免费视 | 亚洲人成毛片在线播放女女| 久久久久久久性| 欧美一区二区视频在线观看2020| 国产精品福利网| 亚洲影院污污.| 一级日韩一区在线观看| 欧美日韩黄色大片| 亚洲天堂视频在线观看| 日韩亚洲欧美中文三级| 欧美日本高清视频| 日韩亚洲精品电影| 亚洲日本在线观看| 欧美日本韩国一区| 亚洲天堂av电影| 中日韩男男gay无套| 国产精品美女久久久| 欧美一级专区免费大片| 午夜久久影院| 精品成人在线| 欧美国产高清| 欧美另类在线播放| 在线视频你懂得一区| 亚洲精品网站在线播放gif| 欧美日韩中文字幕在线| 亚洲伊人第一页| 先锋影音一区二区三区| 伊人色综合久久天天| 欧美成在线观看| 欧美精品国产精品| 亚洲一区二区免费视频| 亚洲欧美清纯在线制服| 国产亚洲欧美色| 欧美电影在线观看完整版| 欧美日本一区| 午夜影视日本亚洲欧洲精品| 久久精品盗摄| 亚洲精品影视| 亚洲制服丝袜在线| 精品动漫一区二区| 亚洲精品一区二区三区在线观看 | 免费一级欧美片在线观看| 亚洲另类自拍| 亚洲女爱视频在线| 永久555www成人免费| 亚洲国产mv| 国产精品视频yy9099| 欧美激情第二页| 国产精品成av人在线视午夜片| 久久久女女女女999久久| 欧美激情一区二区三区在线视频| 亚洲免费在线精品一区|