blob: de52d715fa33bbe1c0f0db2c08a10481a5b6cf26 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<title>New Watch Dialog Box</title>
<link rel="stylesheet" href="ide.css" title="Oracle BLAFDoc" type="text/css"/>
</head>
<body>
<p><a id="debug.add.watch" name="debug.add.watch"></a></p>
<div id="NBCSH2765"><!-- infolevel="all" infotype="General" --><a id="sthref358" name="sthref358"></a>
<h1>New Watch Dialog Box</h1>
<a name="BEGIN" id="BEGIN"></a>
<p>The New Watch dialog box enables you to specify variables or expressions to watch continuously when debugging an application. You open this dialog box either by choosing <b>Debug</b> &gt; <b>New Watch</b> or by right-clicking a variable in the Source Editor and choosing New Watch. When you open the dialog box from the Source Editor, the Watch Expression field contains the name of the variable that the insertion point is on.
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG889">
<param name="text" value="<html><u>How?</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</p>
<p>When you create a watch, the value of the variable or expression is immediately evaluated and displayed in the Watches window. The value is based on the current context. When you change the current context, the Watches window is updated to show the value of the watch for that context.</p>
<p>In some cases, the debugger assigns a pound sign (<code dir="ltr">#</code>) and a number as the value of the watch. This number is a unique identifier of the given instance. You can use this identifier to determine if a variable points to the same or to a different instance.</p>
<p>When you specify an expression to watch, follow the syntax rules of the debugger that you are using.</p>
<a id="NBCSH2766" name="NBCSH2766"></a>
<hr><p><b>Related Topics</b></p>
<p><i>Developing Applications with NetBeans IDE</i>,
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG885">
<param name="text" value="<html><u>&quot;Viewing Program Information When Debugging&quot;</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</p>
<p>Developing Applications with NetBeans IDE,
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG2034">
<param name="text" value="<html><u>&quot;Enabling and Creating Watches in PHP Code&quot;</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</p>
<p><i>Developing Applications with NetBeans IDE</i>,
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG1534">
<param name="text" value="<html><u>&quot;About Developing PHP Applications&quot;</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</p>
<!-- -->
<!-- Start Footer -->
<table summary="" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td align="left" width="86%"><a href="legal_notice.htm">
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements; and to You under the Apache License, Version 2.0.</a>
</td>
</tr>
</table>
<!-- -->
</body>
</html>