| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| <html lang="en"> |
| <head> |
| <meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2007. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." > |
| <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
| <meta http-equiv="Content-Style-Type" content="text/css"> |
| <link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css"> |
| <title>Adding Line Breakpoints</title> |
| </head> |
| <body> |
| <h1> Adding Line Breakpoints </h1> |
| <p> Line breakpoints are set on an executable line of a program. </p> |
| <ol> |
| <li> In the editor area, open the file where you want to add the breakpoint. </li> |
| <li> Directly to the left of the line where you want to add the breakpoint, |
| open the marker bar (vertical ruler) pop-up menu and select <strong>Toggle |
| Breakpoint.</strong> You can also double-click on the marker bar |
| next to the source code line. A new breakpoint marker appears on the |
| marker bar, directly to the left of the line where you added the breakpoint. </li> |
| </ol> |
| <p>Also, the new breakpoint appears in the <a href="../reference/views/breakpoints/ref-breakpoints_view.htm"><strong>Breakpoints View</strong></a> list. </p> |
| <p> While the breakpoint is enabled, thread execution suspends before that line of code is executed. The debugger selects |
| the thread that has suspended and displays the thread's stack |
| frames. The line where the breakpoint was set is highlighted in the editor in the <strong>Debug Perspective</strong>. </p> |
| <h3 class="related">Related concepts</h3> |
| <a href="../concepts/cdebugger.htm">Debugger</a><br> |
| <a href="../concepts/concept-java-perspective.htm">Java perspectives</a><br> |
| <a href="../concepts/concept-java-editor.htm">Java editor</a> |
| <h3 class="related">Related tasks</h3> |
| <a href="task-apply_hit_count.htm">Applying hit counts</a><br> |
| <a href="task-catching_exceptions.htm">Catching Java exceptions</a><br> |
| <a href="task-remove_line_breakpoints.htm">Removing breakpoints</a><br> |
| <a href="task-enable_disable_breakpoints.htm">Enabling and disabling breakpoints</a><br> |
| <a href="task-manage_conditional_breakpoint.htm">Managing conditional breakpoints</a><br> |
| <a href="task-set_method_breakpoints.htm">Setting method breakpoints</a><br> |
| <a href="../tasks/task-stepping.htm">Stepping through the execution of a program</a> |
| <h3 class="related">Related references</h3> |
| <a href="../reference/views/breakpoints/ref-breakpoints_view.htm">Breakpoints view</a> |
| </body> |
| </html> |