5 <meta http-equiv="Content-Style-Type" content="text/css" /> |
5 <meta http-equiv="Content-Style-Type" content="text/css" /> |
6 <meta name="LASTUPDATED" content="06/17/05 11:09:43" /> |
6 <meta name="LASTUPDATED" content="06/17/05 11:09:43" /> |
7 <title>Setting and Removing Watchpoints</title> |
7 <title>Setting and Removing Watchpoints</title> |
8 <link rel="StyleSheet" href="../../../book.css" type="text/css"/> |
8 <link rel="StyleSheet" href="../../../book.css" type="text/css"/> |
9 </head> |
9 </head> |
10 <body bgcolor="#FFFFFF"> |
10 <body > |
11 <h2>Setting and Removing Watchpoints</h2> |
11 <h2>Setting and Removing Watchpoints</h2> |
12 <p>You create a watchpoint to monitor a value in a specified memory location. The debugger halts program execution on the line of source code that triggered the watchpoint. This is different than a breakpoint, which halts program execution prior to executing the line of source code on which the breakpoint is set.</p> |
12 <p>You create a watchpoint to monitor a value in a specified memory location. The debugger halts program execution on the line of source code that triggered the watchpoint. This is different than a breakpoint, which halts program execution prior to executing the line of source code on which the breakpoint is set.</p> |
13 <h4>Setting watchpoints</h4> |
13 <h4>Setting watchpoints</h4> |
14 <p>Right-click in the <a href="../breakpoints/viewing_breakpoints.htm">Breakpoints</a> view and choose the <b>Add Watchpoint (C/C++)...</b> command to open the <b>Add Watchpoint</b> window. A watchpoint suspends program execution when the memory location that you specify is accessed with a write or read operation and it's based on the access setting. Use the <b>Add Watchpoint</b> window to specify the memory location, its memory size, unit size, and define whether the watchpoint triggers on a read, write, or on both operations. Watchpoints can also be added directly in the <a href="../../reference/view_variables.htm">Variables</a>, <a href="PLUGINS_ROOT/org.eclipse.cdt.doc.user/reference/cdt_u_outline_view.htm">Outline</a>, and the <a href="../../reference/view_memory.htm">Memory Rendering</a> views.</p> |
14 <p>Right-click in the <a href="../breakpoints/viewing_breakpoints.htm">Breakpoints</a> view and choose the <b>Add Watchpoint (C/C++)...</b> command to open the <b>Add Watchpoint</b> window. A watchpoint suspends program execution when the memory location that you specify is accessed with a write or read operation and it's based on the access setting. Use the <b>Add Watchpoint</b> window to specify the memory location, its memory size, unit size, and define whether the watchpoint triggers on a read, write, or on both operations. Watchpoints can also be added directly in the <a href="../../reference/view_variables.htm">Variables</a>, <a href="PLUGINS_ROOT/org.eclipse.cdt.doc.user/reference/cdt_u_outline_view.htm">Outline</a>, and the <a href="../../reference/view_memory.htm">Memory Rendering</a> views.</p> |
15 <p align="center"><img src="../images/wnd_add_watchpoint.png" width="238" height="253"></p> |
15 <p align="center"><img src="../images/wnd_add_watchpoint.png" width="238" height="253"></p> |