<p>If a project is selected in the <ahref="../reference/cdt_u_project_explorer_view.htm">Project Explorer</a> view the following data is automatically entered, take a moment to verify its accuracy or change as needed. <br>
<br>
</p>
<oltype="a">
<li>In the <strong>Name</strong> edit box, type the project name, like <strong>Hello World</strong>.<br>
<br>
You can now select this debug launch configuration by name the next time
that you debug this project.<br>
<br>
</li>
<li>In the <strong>C/C++ Application</strong> edit box, type the name of the executable if its not already entered. <br>
<br>
If not, click the <strong>Search Project</strong> button to locate the executable in the project.<br>
<br>
</li>
<li>
<p>In the <strong>Project</strong> edit box, type or choose your project, e.g. <strong>HelloWorld</strong>.<br>
</p>
<p> </p>
<p><strong>NOTE</strong> If you see the error "<spanclass="typewriter">[Debugger]: No debugger available</span>", select the <strong>Debugger</strong> tab
and choose a valid debugger for your platform (e.g. <spanclass="typewriter">gdb/mi</span>). <br>
<p><strong>NOTE</strong> If you see the error "<spanclass="typewriter">Can't find source file</span>" in the editor view, use the <strong>Locate File</strong> button
to locate your source file.<br>
</p>
</blockquote>
<ol>
<li>In the left margin of the <spanclass="typewriter">main.cpp</span> window, double-click to set a
breakpoint on:<br>
<br>
<spanclass="typewriter">cout <<"You just entered"
</span><br>
<br>
You'll see a blue circle (<imgsrc="../images/icon_breakpoint_obj.gif"alt="Breakpoint"width="16"height="16"align="absmiddle">) there indicating the breakpoint is set.</br>
<br>
<br>
</li>
<li>Click <strong>Run > Resume</strong>.
<br>
<br>
Or, you can use the <strong>Resume</strong> button (<imgsrc="../images/icon_db_resume.png"alt="Resume"width="19"height="14"align="absmiddle">) on the toolbar of the <strong>Debug</strong> view
.<br>
<br>
</li>
<li>When prompted, in the <strong>Console</strong> view, type a value other than 'm', and press Enter.<br>
<br>
The breakpoint will be hit.<br>
<br>
</li>
<li>In the <strong>Variables</strong> view, verify that the variable is not 'm'.<br>
<br>
</li>
<li>Click <strong>Run > Resume</strong>.<br>
<br>
</li>
<li>When prompted, again type a value other than 'm' in the <ahref="../reference/cdt_u_console_view.htm">Console</a> view, and press Enter.</li>
<p>The breakpoint will be hit.</p>
<li>In the <strong>Variables</strong> view, verify that the variable is not 'm'.<br>
<br>
</li>
<li>In the <strong>Variables</strong> view, right-click the input variable, and select <strong>Change Value...</strong>
and type <strong>'m'</strong><em>between the single quotes</em> and hit <strong>OK</strong>.<br>
<br>
</li>
<li>Click <strong>Run > Resume</strong>.</li>
<p>The output in the <spanclass="typewriter">helloworld.exe</span> application window is: "<spanclass="typewriter">You just entered m, you need to enter m to exit.</span>"
<li>The application terminates and the debug session ends. The <strong>Debug</strong> perspective remains open.</li>
<imgborder="0"src="../images/ngback.gif"width="16"height="16"alt="Back icon"></a><strong><ahref="cdt_w_build.htm">Back: Building a project</a></strong> </p>