# HG changeset patch # User fturovic # Date 1278686590 18000 # Node ID e6d4a94a48d3fede802695a317486892b3f9c1c4 # Parent 92ca7b538bd22e8b7764b6a914276fa379e9e48b revised variables view page and added new images diff -r 92ca7b538bd2 -r e6d4a94a48d3 core/com.nokia.carbide.cpp.doc.user/html/debugger/images/menu_view_variables_01.png Binary file core/com.nokia.carbide.cpp.doc.user/html/debugger/images/menu_view_variables_01.png has changed diff -r 92ca7b538bd2 -r e6d4a94a48d3 core/com.nokia.carbide.cpp.doc.user/html/debugger/images/menu_view_variables_02.png Binary file core/com.nokia.carbide.cpp.doc.user/html/debugger/images/menu_view_variables_02.png has changed diff -r 92ca7b538bd2 -r e6d4a94a48d3 core/com.nokia.carbide.cpp.doc.user/html/debugger/images/view_variables.png Binary file core/com.nokia.carbide.cpp.doc.user/html/debugger/images/view_variables.png has changed diff -r 92ca7b538bd2 -r e6d4a94a48d3 core/com.nokia.carbide.cpp.doc.user/html/debugger/images/wnd_add_watchpoint.png Binary file core/com.nokia.carbide.cpp.doc.user/html/debugger/images/wnd_add_watchpoint.png has changed diff -r 92ca7b538bd2 -r e6d4a94a48d3 core/com.nokia.carbide.cpp.doc.user/html/debugger/images/wnd_cast_to_type.png Binary file core/com.nokia.carbide.cpp.doc.user/html/debugger/images/wnd_cast_to_type.png has changed diff -r 92ca7b538bd2 -r e6d4a94a48d3 core/com.nokia.carbide.cpp.doc.user/html/debugger/images/wnd_display_as_array.png Binary file core/com.nokia.carbide.cpp.doc.user/html/debugger/images/wnd_display_as_array.png has changed diff -r 92ca7b538bd2 -r e6d4a94a48d3 core/com.nokia.carbide.cpp.doc.user/html/debugger/images/wnd_find_variables.png Binary file core/com.nokia.carbide.cpp.doc.user/html/debugger/images/wnd_find_variables.png has changed diff -r 92ca7b538bd2 -r e6d4a94a48d3 core/com.nokia.carbide.cpp.doc.user/html/debugger/images/wnd_global_variables.png Binary file core/com.nokia.carbide.cpp.doc.user/html/debugger/images/wnd_global_variables.png has changed diff -r 92ca7b538bd2 -r e6d4a94a48d3 core/com.nokia.carbide.cpp.doc.user/html/debugger/images/wnd_set_value.png Binary file core/com.nokia.carbide.cpp.doc.user/html/debugger/images/wnd_set_value.png has changed diff -r 92ca7b538bd2 -r e6d4a94a48d3 core/com.nokia.carbide.cpp.doc.user/html/debugger/variables/adding_variables.htm --- a/core/com.nokia.carbide.cpp.doc.user/html/debugger/variables/adding_variables.htm Wed Jul 07 15:29:48 2010 -0500 +++ b/core/com.nokia.carbide.cpp.doc.user/html/debugger/variables/adding_variables.htm Fri Jul 09 09:43:10 2010 -0500 @@ -1,24 +1,23 @@ - - - - - - -Adding and Removing Global Variables - - - -

Adding and Removing Global Variables

-

The Variables view can also display global variables used by the program. Right-click in the Variables view and select the Add Global Variables menu option to open the Global Variables dialog. There you can select one or more global variables to display in the Variables view, clickiing OK when done.

-

-

Figure 1 - Global Variables selection dialog

-

 

-

Removing Global Variables

-

Right-click in the Variables view and select the Add Global Variables menu option to open the Global Variables dialog. Locate and uncheckmark the global variable to stop displaying, then click OK. This removes the selected global variable from the variables list.

-
Other references
- - - - + + + + + + +Adding and Removing Global Variables + + + +

Adding and Removing Global Variables

+

The Variables view can also display global variables used by the program. Right-click in the Variables view and select the Add Global Variables menu option to open the Global Variables dialog. There you can select one or more global variables to display in the Variables view, clickiing OK when done.

+

Global Variables window

+

Figure 1 - Global Variables selection dialog

+

Removing Global Variables

+

Right-click in the Variables view and select the Add Global Variables menu option to open the Global Variables dialog. Locate and uncheckmark the global variable to stop displaying, then click OK. This removes the selected global variable from the variables list.

+
Other references
+ + + + diff -r 92ca7b538bd2 -r e6d4a94a48d3 core/com.nokia.carbide.cpp.doc.user/html/debugger/variables/viewing_variables.htm --- a/core/com.nokia.carbide.cpp.doc.user/html/debugger/variables/viewing_variables.htm Wed Jul 07 15:29:48 2010 -0500 +++ b/core/com.nokia.carbide.cpp.doc.user/html/debugger/variables/viewing_variables.htm Fri Jul 09 09:43:10 2010 -0500 @@ -11,7 +11,7 @@

Viewing Variables

The Variables view allows manipulation of project variables and the variable hierarchy used in the source code. For example, you can change the variable format, change a variable value, add watch expressions, or add global variables.

Figure 1 shows the Variables view with Show Type Names option enabled. The default view shows the variables list and include the Name and Value for all the variables within scope. In addition, when you select a variable its value is also shown in a different pane within the view.

-

+

Figure 1 - Variables view

Variables view toolbar icons

The following commands appear on the Variables view toolbar:

@@ -52,15 +52,16 @@ Click to remove all global variables from the variables list. - Menu + View Menu
-

Enables you to modifiy the Layout to change the view orientation between: horizontal, vertical, or variables pane only.

+

Enables you to modifiy the Layout to change the view orientation between: horizontal, vertical, or variables pane only and customize the columns shown in the view.

+

View menu

In addition, use Show All Variables to toggle between showing only those variables that are in scope and live or show all local variables, even if redundant. With this option on you will see all of the variables including the multiple defined variables like “i” for your loops and ones that may no longer have accurate values.

Variables view context menu options

Right-click in the Variables view to access the commands on the Variables view context menu.

-

+

Variables view context menu

Figure 2. Variables view context menu commands

The commands include:

@@ -74,7 +75,8 @@ - + @@ -85,60 +87,62 @@ - - + + - - - - - - + + - + + + + + - + +

+ + + + + + + + + + + + - - - - - - - - - + - - - - - + - - - -
Copy VariablesCopies the selected variables to the clipboard.

Copies the selected variables to the clipboard.

+

NOTE Only the selected variables visible in the Variables view are copied. Variables listed outside the boundary of the view are not in memory and can't be copied at this time.

EnableDisables the selected variable.
Display as Array... Cast To Type...

Opens the Cast to Type dialog where you can assign a new type to the variable. Enter the type and click OK.

+

All cast variables are then shown using the Restore Original Type menu option making them easy to identify and restore later.

+

Cast To Type window

+
Cast To Type...Opens the Cast to Type dialog where you can assign a new type to the variable.

Restore Original Type

Resets the selected variable to the original type assigned by the program.Display As Array...

Opens the Display as Array dialog where you can set array parameters to show the variables. Enter the Start index and Length, then click OK to update how the variables are shown in the Variables view.

+

Display as Array

View MemoryOpens a Memory view on the selected variable so you can examine it.Opens a Memory view on the selected variable so you can examine it.
Format

Change the selected variable's display format. The default setting is Natural, or the format assigned when the variable is defined. For example, the decimal value of 256 would appear as:

+
    +
  • Binary (0b100000)
  • +
  • Natural (256)
  • +
  • Decimal (256)
  • +
  • Hexadecimal (0x100)
  • +
Find...Opens a Find dialog to search for variables.

Opens a Find dialog to search for variables. Enter the variable to search for and click OK.

+

Find window

Change Value...

Opens the Set Value dialog where you can modify the value assigned to the selected variable. Change the value and click OK.

-

Add Global Variables...Select to open the Global Variables dialog where you can select one or more global variables to display in the Variables view. Global variables appear at the top of the variables list.
Remove Global VariablesRemove the selected global variables from the Variables view.
Remove All Global VariablesRemove all global variables from the Variables view.
Add Watchpoint (C/C++)...Opens the Add Watchpoint dialog enabling you to define a watchpoint on the variable.
Add Global Variables...Select to open the Global Variables dialog where you can select one or more global variables to display in the Variables view. Global variables appear at the top of the variables list.
Remove Global VariablesRemove the selected global variables from the Variables view.

Opens the Add Watchpoint dialog enabling you to define a watchpoint on the variable.

+

Add Watchpoint window

Remove All Global VariablesRemove all global variables from the Variables view.
Create Watch Expression Watch Creates a watchpoint on the selected variable and displays it in the Watchpoint view.
Format

Change the selected variable's display format. The default setting is Natural, or the format assigned when the variable is defined. For example, the decimal value of 256 would appear as:

-
    -
  • Binary (0b100000)
  • -
  • Natural (256)
  • -
  • Decimal (256)
  • -
  • Hexadecimal (0x100)
  • -
Other references