|
2 | 2 | title: "EVALFLAGS | Microsoft Docs"
|
3 | 3 | ms.date: "11/04/2016"
|
4 | 4 | ms.topic: "conceptual"
|
5 |
| -f1_keywords: |
| 5 | +f1_keywords: |
6 | 6 | - "EVALFLAGS"
|
7 |
| -helpviewer_keywords: |
| 7 | +helpviewer_keywords: |
8 | 8 | - "EVALFLAGS enumeration"
|
9 | 9 | ms.assetid: 7b2cb14a-511a-4fef-9e4f-308139719fba
|
10 | 10 | author: "gregvanl"
|
11 | 11 | ms.author: "gregvanl"
|
12 | 12 | manager: jillfra
|
13 |
| -ms.workload: |
| 13 | +ms.workload: |
14 | 14 | - "vssdk"
|
15 | 15 | ---
|
16 | 16 | # EVALFLAGS
|
17 |
| -Specifies flags that control expression evaluation. |
18 |
| - |
19 |
| -## Syntax |
20 |
| - |
21 |
| -```cpp |
22 |
| -enum enum_EVALFLAGS { |
23 |
| - EVAL_RETURNVALUE = 0x0002, |
24 |
| - EVAL_NOSIDEEFFECTS = 0x0004, |
25 |
| - EVAL_ALLOWBPS = 0x0008, |
26 |
| - EVAL_ALLOWERRORREPORT = 0x0010, |
27 |
| - EVAL_FUNCTION_AS_ADDRESS = 0x0040, |
28 |
| - EVAL_NOFUNCEVAL = 0x0080, |
29 |
| - EVAL_NOEVENTS = 0x1000 |
30 |
| -}; |
31 |
| -typedef DWORD EVALFLAGS; |
32 |
| -``` |
33 |
| - |
34 |
| -```csharp |
35 |
| -public enum enum_EVALFLAGS { |
36 |
| - EVAL_RETURNVALUE = 0x0002, |
37 |
| - EVAL_NOSIDEEFFECTS = 0x0004, |
38 |
| - EVAL_ALLOWBPS = 0x0008, |
39 |
| - EVAL_ALLOWERRORREPORT = 0x0010, |
40 |
| - EVAL_FUNCTION_AS_ADDRESS = 0x0040, |
41 |
| - EVAL_NOFUNCEVAL = 0x0080, |
42 |
| - EVAL_NOEVENTS = 0x1000 |
43 |
| -} |
44 |
| -``` |
45 |
| - |
46 |
| -## Members |
47 |
| - EVAL_RETURNVALUE |
48 |
| - Specifies that the return value, if any, be evaluated. |
49 |
| - |
50 |
| - EVAL_NOSIDEEFFECTS |
51 |
| - Specifies that side effects not be allowed. |
52 |
| - |
53 |
| - EVAL_ALLOWBPS |
54 |
| - Specifies stopping on breakpoints. |
55 |
| - |
56 |
| - EVAL_ALLOWERRORREPORT |
57 |
| - Specifies error reporting to the host to be allowed. Primarily used for expression evaluation in script in Internet Explorer. |
58 |
| - |
59 |
| - EVAL_FUNCTION_AS_ADDRESS |
60 |
| - Forces functions to be evaluated as addresses, instead of invoking the function. |
61 |
| - |
62 |
| - EVAL_NOFUNCEVAL |
63 |
| - Prevents function from being evaluated. For example, consider the `int` token in the expression `myExpression(int) + 10`. This function can be correctly evaluated as an address, but not as a value. |
64 |
| - |
65 |
| - EVAL_NOEVENTS |
66 |
| - Flag to indicate that events that occur during the expression evaluation should not be sent to the session debug manager (SDM) or to the IDE. |
67 |
| - |
68 |
| -## Remarks |
69 |
| - These flags are passed as an argument to the [EvaluateAsync](../../../extensibility/debugger/reference/idebugexpression2-evaluateasync.md) and [EvaluateSync](../../../extensibility/debugger/reference/idebugexpression2-evaluatesync.md) methods. |
70 |
| - |
71 |
| - These flags may be combined with a bitwise OR. |
72 |
| - |
73 |
| -## Requirements |
74 |
| - Header: msdbg.h |
75 |
| - |
76 |
| - Namespace: Microsoft.VisualStudio.Debugger.Interop |
77 |
| - |
78 |
| - Assembly: Microsoft.VisualStudio.Debugger.Interop.dll |
79 |
| - |
80 |
| -## See Also |
81 |
| - [Enumerations](../../../extensibility/debugger/reference/enumerations-visual-studio-debugging.md) |
82 |
| - [EvaluateAsync](../../../extensibility/debugger/reference/idebugexpression2-evaluateasync.md) |
83 |
| - [EvaluateSync](../../../extensibility/debugger/reference/idebugexpression2-evaluatesync.md) |
| 17 | +Specifies flags that control expression evaluation. |
| 18 | + |
| 19 | +## Syntax |
| 20 | + |
| 21 | +```cpp |
| 22 | +enum enum_EVALFLAGS { |
| 23 | + EVAL_RETURNVALUE = 0x0002, |
| 24 | + EVAL_NOSIDEEFFECTS = 0x0004, |
| 25 | + EVAL_ALLOWBPS = 0x0008, |
| 26 | + EVAL_ALLOWERRORREPORT = 0x0010, |
| 27 | + EVAL_FUNCTION_AS_ADDRESS = 0x0040, |
| 28 | + EVAL_NOFUNCEVAL = 0x0080, |
| 29 | + EVAL_NOEVENTS = 0x1000 |
| 30 | +}; |
| 31 | +typedef DWORD EVALFLAGS; |
| 32 | +``` |
| 33 | + |
| 34 | +```csharp |
| 35 | +public enum enum_EVALFLAGS { |
| 36 | + EVAL_RETURNVALUE = 0x0002, |
| 37 | + EVAL_NOSIDEEFFECTS = 0x0004, |
| 38 | + EVAL_ALLOWBPS = 0x0008, |
| 39 | + EVAL_ALLOWERRORREPORT = 0x0010, |
| 40 | + EVAL_FUNCTION_AS_ADDRESS = 0x0040, |
| 41 | + EVAL_NOFUNCEVAL = 0x0080, |
| 42 | + EVAL_NOEVENTS = 0x1000 |
| 43 | +} |
| 44 | +``` |
| 45 | + |
| 46 | +## Members |
| 47 | +EVAL_RETURNVALUE |
| 48 | +Specifies that the return value, if any, be evaluated. |
| 49 | + |
| 50 | +EVAL_NOSIDEEFFECTS |
| 51 | +Specifies that side effects not be allowed. |
| 52 | + |
| 53 | +EVAL_ALLOWBPS |
| 54 | +Specifies stopping on breakpoints. |
| 55 | + |
| 56 | +EVAL_ALLOWERRORREPORT |
| 57 | +Specifies error reporting to the host to be allowed. Primarily used for expression evaluation in script in Internet Explorer. |
| 58 | + |
| 59 | +EVAL_FUNCTION_AS_ADDRESS |
| 60 | +Forces functions to be evaluated as addresses, instead of invoking the function. |
| 61 | + |
| 62 | +EVAL_NOFUNCEVAL |
| 63 | +Prevents function from being evaluated. For example, consider the `int` token in the expression `myExpression(int) + 10`. This function can be correctly evaluated as an address, but not as a value. |
| 64 | + |
| 65 | +EVAL_NOEVENTS |
| 66 | +Flag to indicate that events that occur during the expression evaluation should not be sent to the session debug manager (SDM) or to the IDE. |
| 67 | + |
| 68 | +## Remarks |
| 69 | +These flags are passed as an argument to the [EvaluateAsync](../../../extensibility/debugger/reference/idebugexpression2-evaluateasync.md) and [EvaluateSync](../../../extensibility/debugger/reference/idebugexpression2-evaluatesync.md) methods. |
| 70 | + |
| 71 | +These flags may be combined with a bitwise OR. |
| 72 | + |
| 73 | +## Requirements |
| 74 | +Header: msdbg.h |
| 75 | + |
| 76 | +Namespace: Microsoft.VisualStudio.Debugger.Interop |
| 77 | + |
| 78 | +Assembly: Microsoft.VisualStudio.Debugger.Interop.dll |
| 79 | + |
| 80 | +## See Also |
| 81 | +[Enumerations](../../../extensibility/debugger/reference/enumerations-visual-studio-debugging.md) |
| 82 | +[EvaluateAsync](../../../extensibility/debugger/reference/idebugexpression2-evaluateasync.md) |
| 83 | +[EvaluateSync](../../../extensibility/debugger/reference/idebugexpression2-evaluatesync.md) |
0 commit comments