blob: 223c18fafa87a59cc0b202d9053e3091ec462f44 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Specifying the location of source files</title>
<link rel="stylesheet" type="text/css" href="../help.css">
</head>
<body>
<div role="main"><h1>Specifying the location of source files</h1>
<p>You can specify the locations of source files used when debugging a C or C++
application. By default, this information is taken from your project.</p>
<p>To specify the locations of source files:</p>
<ol>
<li>In the C/C++ Projects view, select a project.</li>
<li>Click <strong>Run &gt; Run</strong> or <strong>Run &gt; Debug</strong>.</li>
<li>In the <strong>Configurations</strong> box, expand <strong>C/C++ Local</strong>.</li>
<li>Select a run or debug configuration.</li>
<li>Click the <strong>Source</strong> tab.</li>
<li>To add a source container to the source locations list:
<ul>
<li>Click <strong>Add</strong> to open the <strong>Add Source</strong> dialog box</li>
<li>Select a container type.</li>
<li>Select a container from the list of available containers of the selected type.</li>
</ul>
<li>You can remove or modify a source container by selecting a container and clicking the <strong>Remove</strong> or <strong>Edit</strong> button.</li>
<li>You can change the order of source containers by selecting a container and clicking
the <strong>Up</strong> or <strong>Down</strong> buttons.</li>
<li>To search for duplications in your source locations select the <strong>Search for duplicate source files on the path</strong> checkbox.</li>
</ol>
<p><img src="../images/ngconcepts.gif" ALT="Related concepts" width="143" height="21">
<br>
<a href="../concepts/cdt_c_projects.htm">CDT Projects</a><br>
<a href="../concepts/cdt_c_proj_file_views.htm">Project file views</a></p>
<p><img src="../images/ngtasks.gif" ALT="Related tasks" width="143" height="21">
<br>
<a href="cdt_o_run_config.htm">Creating or editing a run configuration</a></p>
<p><img 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>
<img src="../images/ng00_04a.gif" ALT="IBM Copyright Statement" >
</div></body>
</html>