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

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

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>
            亚洲一区二区三区四区五区午夜| 欧美成人免费大片| 久久婷婷蜜乳一本欲蜜臀| 在线观看日韩www视频免费| 久久综合久久久| 日韩视频欧美视频| 亚洲欧美日韩国产成人| 国产亚洲毛片在线| 欧美不卡视频一区| 一区二区久久| 久久综合伊人77777尤物| 91久久在线| 国产精品剧情在线亚洲| 久久久欧美精品sm网站| 亚洲国产经典视频| 亚洲一区欧美| 在线观看中文字幕亚洲| 欧美精品一区二区三区在线看午夜| 亚洲天堂av图片| 欧美va亚洲va香蕉在线| 亚洲淫片在线视频| 在线成人亚洲| 国产伦精品一区二区三区在线观看| 久久久久成人精品| 一区二区三区视频在线 | av成人激情| 久久亚洲美女| 亚洲综合色婷婷| 亚洲破处大片| 国产亚洲一区二区精品| 欧美日韩黄视频| 久久久久久九九九九| 亚洲视频在线观看| 欧美激情自拍| 久久亚洲春色中文字幕| 亚洲专区一二三| 日韩视频在线观看免费| 韩日午夜在线资源一区二区| 欧美午夜精品久久久久免费视| 久久久天天操| 午夜精品久久久久久久99热浪潮| 亚洲破处大片| 欧美成人dvd在线视频| 欧美在线免费播放| 亚洲无亚洲人成网站77777 | 欧美亚洲视频一区二区| 日韩视频不卡| 亚洲人成人一区二区在线观看| 久久精品国产亚洲精品| 亚洲欧美在线视频观看| 一区二区日本视频| 日韩午夜电影| 亚洲人成在线播放| 亚洲国产精品一区二区三区| 韩国精品在线观看| 国产视频在线观看一区二区| 国产精品对白刺激久久久| 欧美乱人伦中文字幕在线| 免费视频一区二区三区在线观看| 久久精品国产91精品亚洲| 亚洲一区在线视频| 在线一区日本视频| 一区二区av在线| 一本久久精品一区二区| 一本色道久久综合亚洲精品婷婷 | 精品1区2区3区4区| 国产一区999| 国产一区二区久久| 国产亚洲美州欧州综合国| 国产欧美日韩综合精品二区| 国产伦精品一区二区三区高清版| 国产精品三级视频| 国产精品家庭影院| 国产麻豆9l精品三级站| 国产一区导航| 激情综合色综合久久综合| 一区二区三区在线免费播放| 黄色亚洲免费| 91久久亚洲| 亚洲精品一区中文| 一区二区高清视频在线观看| 亚洲视频中文字幕| 欧美一区=区| 美女91精品| 亚洲国产精品成人综合| 亚洲靠逼com| 亚洲一区在线直播| 久久精品二区三区| 欧美国产视频在线| 久久国产免费看| 久久av红桃一区二区小说| 久久深夜福利| 亚洲高清影视| 亚洲午夜久久久久久久久电影院 | 蜜臀av性久久久久蜜臀aⅴ四虎| 浪潮色综合久久天堂| 欧美激情精品久久久六区热门| 最新国产拍偷乱拍精品 | 国产亚洲欧洲997久久综合| 1000部国产精品成人观看| 日韩亚洲一区二区| 欧美一区二区三区免费大片| 免费观看亚洲视频大全| 日韩一级片网址| 欧美在线免费观看| 欧美好吊妞视频| 国产女主播一区| 亚洲人人精品| 久久成人人人人精品欧| 亚洲福利小视频| 亚洲欧美一区二区视频| 欧美成人有码| 国产视频不卡| 一区二区三区四区国产| 久久久久久久波多野高潮日日| 最新69国产成人精品视频免费| 亚洲一区二区三区久久| 另类尿喷潮videofree| 国产精品视频免费观看www| 亚洲国产免费看| 欧美主播一区二区三区美女 久久精品人| 免费视频久久| 午夜视频久久久| 欧美日韩亚洲免费| 亚洲国产日韩欧美在线99| 亚洲欧美日韩天堂| 最新日韩中文字幕| 久久综合给合久久狠狠色| 国产欧美一级| 亚洲小说区图片区| 亚洲国产精品福利| 久久久久久噜噜噜久久久精品| 国产精品成人av性教育| 亚洲理伦在线| 欧美成人免费大片| 欧美在线一二三四区| 国产精品久久久久久久久免费樱桃 | 欧美日韩在线播| 在线日韩av片| 久久久久一本一区二区青青蜜月| 99在线精品视频| 欧美另类视频在线| 亚洲精品美女久久久久| 免费精品视频| 久久国产精品久久久久久| 国产精品久久久久一区| 这里只有精品视频在线| 91久久精品久久国产性色也91| 久久天堂成人| 亚洲国产成人在线视频| 麻豆成人av| 久久久久免费视频| 黄色成人精品网站| 麻豆乱码国产一区二区三区| 久久精彩免费视频| 好吊日精品视频| 久久一区中文字幕| 久久久久欧美精品| 在线精品高清中文字幕| 免费观看一级特黄欧美大片| 久久男人资源视频| 亚洲电影免费观看高清| 欧美成在线观看| 欧美成人在线网站| 99精品欧美一区二区三区综合在线 | 亚洲综合日韩| 国产午夜精品福利| 久久一区二区三区四区五区| 久久精品视频免费| 亚洲国产精品va在线看黑人| 欧美激情一区二区三区在线视频 | 国内精品久久久久影院色| 久久久久久综合网天天| 久久免费高清视频| 亚洲精品1区| 亚洲日本成人| 国产精品国产三级国产aⅴ浪潮| 亚洲欧美中文日韩v在线观看| 亚洲欧美综合一区| 在线播放中文字幕一区| 亚洲国产成人久久| 国产精品99免费看 | 樱桃成人精品视频在线播放| 欧美福利在线| 欧美日本国产在线| 午夜日韩视频| 麻豆久久精品| 亚洲欧美精品一区| 欧美影院成年免费版| 亚洲国产欧美日韩精品| 一本到高清视频免费精品| 国产午夜精品麻豆| 欧美激情1区2区3区| 欧美日韩情趣电影| 久久久久久久网站| 欧美区日韩区| 久久午夜精品| 欧美日韩日韩| 麻豆成人91精品二区三区| 欧美日韩国产不卡在线看|