2003-11-28 21:50:02 +00:00
|
|
|
<!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>Adding breakpoints</title>
|
|
|
|
<link rel="stylesheet" type="text/css" href="../help.css">
|
2004-05-10 14:38:08 +00:00
|
|
|
<script language="JavaScript">
|
2004-04-26 15:41:43 +00:00
|
|
|
function changeSize(theImage,wd,ht) {
|
|
|
|
wdth=parseInt(theImage.style.width); hght=parseInt(theImage.style.height);
|
|
|
|
if ( !(wdth==(wd*2)) ) {wdth=wd*2; hght=ht*2;}
|
|
|
|
else {wdth=wd;hght=ht;}
|
|
|
|
theImage.style.width=wdth; theImage.style.height=hght;
|
|
|
|
}
|
|
|
|
</script>
|
2003-11-28 21:50:02 +00:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<h1>Adding breakpoints</h1>
|
|
|
|
|
|
|
|
<p>A breakpoint is set on an executable line of a program. If the breakpoint is
|
|
|
|
enabled when you debug, the execution suspends before that line of code
|
|
|
|
executes.</p>
|
|
|
|
|
2004-04-26 15:41:43 +00:00
|
|
|
<p>To add a breakpoint point, double click the marker bar located in the left margin of the
|
|
|
|
<b>C/C++ Editor</b> beside the line of code where you want to add a breakpoint. A dot
|
|
|
|
<img alt="Icon: Breakpoint object" src="../images/icon_breakpoint_obj.gif" width="16" height="16"> is
|
2004-06-14 11:25:12 +00:00
|
|
|
displayed in the marker bar and in the <b>Breakpoints</b> view, along with the name of the associated file.</p>
|
|
|
|
|
|
|
|
<p><img src="../images/add_breakpoint.png" alt="Edit view with the cursor highlighting a breakpoint"> </p>
|
|
|
|
|
2003-11-28 21:50:02 +00:00
|
|
|
<p>For more information on marker bar icons, see <b>Workbench User Guide >
|
|
|
|
Reference > User interface information > Icons and buttons > Editor area
|
|
|
|
marker bar</b>.</p>
|
|
|
|
<p><img border="0" src="../images/ngconcepts.gif" ALT="Related concepts" width="143" height="21">
|
|
|
|
<br>
|
|
|
|
<a href="../concepts/cdt_c_over_cdt.htm">C/C++ Development perspective</a><br>
|
2004-06-24 20:26:35 +00:00
|
|
|
</p>
|
2003-11-28 21:50:02 +00:00
|
|
|
<p><img border="0" src="../images/ngtasks.gif" ALT="Related tasks" width="143" height="21">
|
|
|
|
<br>
|
|
|
|
<a href="cdt_o_brkpnts_watch.htm">Working with breakpoints and watchpoints</a></p>
|
|
|
|
<p><img border="0" src="../images/ngref.gif" ALT="Related reference" width="143" height="21">
|
|
|
|
<br>
|
|
|
|
<a href="../reference/cdt_o_run_dbg_pages.htm">Run and Debug dialog box</a></p>
|
2004-06-24 10:49:13 +00:00
|
|
|
<img src="../images/ng00_04a.gif" ALT="IBM Copyright Statement" >
|
2003-11-28 21:50:02 +00:00
|
|
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|