# HG changeset patch # User fturovic # Date 1286482527 18000 # Node ID 3cc835ea617dc28b79fa7ed94aed6304748c18c4 # Parent a569694921379c9f2dba03884e389b5dfdc90051 BUG 12326 - replaced Expressions View page with Viewing Expressions content and removed links to duplicate page diff -r a56969492137 -r 3cc835ea617d core/com.nokia.carbide.cpp.doc.user/html/debugger/variables/adding_expressions.htm --- a/core/com.nokia.carbide.cpp.doc.user/html/debugger/variables/adding_expressions.htm Thu Oct 07 13:14:04 2010 -0500 +++ b/core/com.nokia.carbide.cpp.doc.user/html/debugger/variables/adding_expressions.htm Thu Oct 07 15:15:27 2010 -0500 @@ -9,7 +9,7 @@

Adding and Removing Expressions

-

An expression is a snippet of code that is evaluated to produce a value. In Carbide they are defined using C/C++ expressions. Some expressions may need to be evaluated at a specific location in the program so that its variables can be referenced. Adding more expressions to the Expressions view list can slow down the automatic display as each must be evaluated to update its value. To manage large lists of expressions, use the Enable and Disable options in the context menu to control which expressions are automatically evaluated.

+

An expression is a snippet of code that is evaluated to produce a value. In Carbide they are defined using C/C++ expressions. Some expressions may need to be evaluated at a specific location in the program so that its variables can be referenced. Adding more expressions to the Expressions view list can slow down the automatic display as each must be evaluated to update its value. To manage large lists of expressions, use the Enable and Disable options in the context menu to control which expressions are automatically evaluated.

You add expressions in the Add Watch Expression dialog using a variety of views, including Expressions, Variables, and editor views. Right-click in the view and select the Add Watch Expression... command from the context menu.

Figure 1. Add Watch Expression dialog

diff -r a56969492137 -r 3cc835ea617d core/com.nokia.carbide.cpp.doc.user/html/debugger/variables/editing_expressions.htm --- a/core/com.nokia.carbide.cpp.doc.user/html/debugger/variables/editing_expressions.htm Thu Oct 07 13:14:04 2010 -0500 +++ b/core/com.nokia.carbide.cpp.doc.user/html/debugger/variables/editing_expressions.htm Thu Oct 07 15:15:27 2010 -0500 @@ -9,7 +9,7 @@

Editing Expressions

-

Use the Edit Watch Expression dialog to change a previously defined expression. Right-click in the Expressions view and select the Edit Watch Expression... command from the context menu. When editing an expression, the same rules used to create it apply. Mainly, the edited expression must be a valid C/C++ expression that evaluates to a value and does not call a function nor execute code.

+

Use the Edit Watch Expression dialog to change a previously defined expression. Right-click in the Expressions view and select the Edit Watch Expression... command from the context menu. When editing an expression, the same rules used to create it apply. Mainly, the edited expression must be a valid C/C++ expression that evaluates to a value and does not call a function nor execute code.

Use the Enable control to set whether this expression should be automatically evaluated during a debug session.

Figure 1. Edit Watch Expression dialog

diff -r a56969492137 -r 3cc835ea617d core/com.nokia.carbide.cpp.doc.user/html/debugger/variables/variables.htm --- a/core/com.nokia.carbide.cpp.doc.user/html/debugger/variables/variables.htm Thu Oct 07 13:14:04 2010 -0500 +++ b/core/com.nokia.carbide.cpp.doc.user/html/debugger/variables/variables.htm Thu Oct 07 15:15:27 2010 -0500 @@ -9,11 +9,11 @@

Variables and Expressions Overview

-

Variables are symbols used in programs to store values or expressions that can change during the life of the program. Being able to view a variable's value is helpful when debugging a program. Expressions are the result of one or more variables being combined to produce a result based on the variable values and the way they are calculated. Variables are shown in the Variables view while expressions are shown in the Expressions view.

+

Variables are symbols used in programs to store values or expressions that can change during the life of the program. Being able to view a variable's value is helpful when debugging a program. Expressions are the result of one or more variables being combined to produce a result based on the variable values and the way they are calculated. Variables are shown in the Variables view while expressions are shown in the Expressions view.

The following cover various variable and expression concepts and actions: