10 <body bgcolor="#FFFFFF"> |
10 <body bgcolor="#FFFFFF"> |
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_wnd.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_wnd.htm">Memory Rendering</a> views.</p> |
15 <p align="center"><img src="../images/wnd_add_watchpoint.png" width="220" height="261"></p> |
15 <p align="center"><img src="../images/wnd_add_watchpoint.png" width="238" height="253"></p> |
16 <p align="center" class="figure">Figure 1. Add Watchpoint window </p> |
16 <p align="center" class="figure">Figure 1. Add Watchpoint window </p> |
17 <h5>Table 1. Add Watchpoint options </h5> |
17 <h5>Table 1. Add Watchpoint options </h5> |
18 <table width="88%" border="0" cellpadding="2" cellspacing="0"> |
18 <table width="88%" border="0" cellpadding="2" cellspacing="0"> |
19 <tr> |
19 <tr> |
20 <th width="32%" scope="col">Name</th> |
20 <th width="32%" scope="col">Name</th> |