1
<?xml version="1.0" encoding="utf-8"?>
2
<page xmlns="http://projectmallard.org/1.0/" type="topic" style="task" id="debug-watch" xml:lang="gl">
4
<info xmlns:facet="http://projectmallard.org/facet/1.0/">
5
<facet:tag key="all-pages" value="whatever"/> <!--Include page in index-->
6
<link type="guide" xref="debug-data" group="second"/>
7
<revision pkgversion="3.0" version="0.1" date="2011-03-27" status="incomplete"/>
8
<desc>Monitorizar expresións e variábeis</desc>
10
<name>Sébastien Granjoux</name>
11
<email>seb.sfo@free.fr</email>
13
<credit type="editor">
14
<name>Philip Chimento</name>
15
<email>philip.chimento@gmail.com</email>
19
<title>Vixiar expresións</title>
21
<p>Watch expressions, or watches for short, are expressions that the debugger
22
evaluates and prints the result of every time the program is stopped; for
23
example, after every <link xref="debug-step">single-step</link>
24
through the program.</p>
27
<title>Lista de expresións vixiadas</title>
31
<p>From the <gui>main menu</gui>, select <guiseq><gui>View</gui>
32
<gui>Watches</gui></guiseq> to open the <gui>Watches</gui>
37
<p>Like local variables, all watch expressions are displayed in a tree with children used to
38
represent structure or array members.</p>
42
<title>Variábeis</title>
43
<p>The name of the variable or the expression.</p>
47
<p>The variable or expression value.</p>
51
<p>The type of the variable or of the expression result.</p>
57
<title>Actualizar vixilancias</title>
59
<p>Watch expressions can be updated automatically as soon as the
60
program is stopped or on user request.</p>
62
<p>To set a watch expression to update automatically:</p>
66
<p>In the <gui>Watches</gui> window, select the watch you want to
67
update automatically. Right-click and check that <gui>Automatic Update</gui>
68
if checked. If not, select it.</p>
72
<p>To update a watch expression manually:</p>
76
<p>In the <gui>Watches</gui> window, right click and select <gui>Update Watch</gui> to
77
update the selected watch.</p>
81
<p>To update all watch expressions manually at once:</p>
85
<p>In the <gui>Watches</gui> window, right click and select <gui>Update all</gui> to
86
update all watches at the same time.</p>
94
<title>Engadir unha vixilancia a unha expresión</title>
96
<p>To add an expression to the watch list:</p>
100
<p>From the <gui>main menu</gui>, select <guiseq><gui>Debug</gui>
101
<gui>Add Watch...</gui></guiseq> or in the <gui>Watches</gui>
102
window, right-click and select <gui>Add Watch...</gui>.</p>
105
<p>Enter the expression to watch. Check <gui>Automatic Update</gui>
106
if you want the expression to be evaluated each time the program
111
<p>An expression can be evaluated and then added as a watch like this:</p>
115
<p>From the <gui>main menu</gui>, select <guiseq><gui>Debug</gui>
116
<gui>Inspect/Evaluate</gui></guiseq> or right click in the
117
<gui>Editor</gui> window and select <gui>Inspect/Evaluate</gui>.</p>
120
<p>Click on <gui>Add</gui> button to add this expression to the watches
128
<title>Quitar unha vixilancia</title>
130
<p>Pode quitar unha expresión da lista de vixilancias.</p>
134
<p>In the <gui>Watches</gui> window, select the watch you want to remove,
135
then right-click and select <gui>Remove Watch</gui>.</p>
139
<p>Pódese quitar todas as vixilancias ao mesmo tempo</p>
143
<p>In the <gui>Watches</gui> window, right-click and select <gui>Remove all</gui>.</p>
150
<title>Cambiar o valor dunha variábel</title>
152
<p>If a watch expression corresponds to a variable, you can change
157
<p>In the <gui>Watches</gui> window, select the variable you want to
158
edit and double click in the <gui>Value</gui> column.</p>
161
<p>Introducir un valor novo.</p>