Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 7bac6550482ab082513f02666d891ecfdb96bcd1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN" >
<html lang="en">

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Attaching or removing breakpoint actions</title>
<link rel="stylesheet" type="text/css" href="../help.css">
</head>

<body>

<h1>Attaching or removing breakpoint actions</h1>

<p>You can attach one or more breakpoint actions to a single breakpoint. For example, when the breakpoint is hit you could both log a message and play a sound. Actions are executed in the order they appear in the <strong>Actions for this breakpoint</strong> list. </p>
<p>To  attach or remove a breakpoint action from a breakpoint: </p>
<ol>
  <li>In the <strong>Breakpoints</strong> view, right-click the breakpoint, and select <strong>Properties</strong>.</li>
  <li>In the <strong>Properties for C/C++ Breakpoint </strong> dialog box, click <strong>Actions</strong>.<br>
  <img src="../images/cdt_pref_brk_action_properties.png" alt="Actions page in Breakpoint Properties Dialog Box" width="605" height="527"></li>
  <li>In the <strong>Available actions</strong> list:
    <ul>
      <li>Select an action and click <strong>Attach</strong> to link it to the breakpoint. Repeat as required. </li>
      <li>To add a new breakpoint action, click <strong>New</strong>.</li>
      <li>To edit the selected breakpoint action, click <strong>Edit</strong>.</li>
      <li>To delete the selected action, click <strong>Delete</strong>. <br>
          <p><strong>NOTE</strong>: Deleting a breakpoint action removes it from the workspace. </p>
      </li>
    </ul>
  </li>

  <li>In the <strong>Actions for this breakpoint</strong> list you can:
    <ul>
      <li>Click <strong>Remove</strong> to delete the selected action from the list.</li>
      <li>Click <strong>Up</strong> to move the selected action up in the list.</li>
      <li>Click <strong>Down</strong> to move the selected action down in the list.</li>
    </ul>
  </li>

  <li>Click <strong>OK</strong>.</li>
</ol>

<p><img border="0" src="../images/ngtasks.gif" ALT="Related tasks" width="143" height="21">
  <br>
  <a href="cdt_o_brkpnts_watch.htm">Using breakpoints, watchpoints, and breakpoint actions</a></p>
<p><img border="0" src="../images/ngref.gif" ALT="Related reference" width="143" height="21">
<br>
<a href="../reference/cdt_u_debug.htm">Debug preferences</a></p>
<hr>
<img src="../images/nokiaCopyright.png" alt="Nokia Copyright Statement" >

</body>

</html>

Back to the top