| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> |
| <html> |
| <head> |
| <meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2005. 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> |
| Suspending threads |
| </title> |
| </head> |
| <body> |
| <h1> |
| Suspending threads |
| </h1> |
| <p> |
| To suspend an executing thread: |
| </p> |
| <ol> |
| <li> |
| Select the thread in the Debug view. |
| </li> |
| <li> |
| Click the <strong><strong>Suspend</strong></strong> button in the Debug view toolbar. The thread suspends its execution. The current call stack for the thread is |
| displayed, and the current line of execution is highlighted in the editor in the Debug perspective. |
| </li> |
| </ol> |
| <p> |
| When a thread suspends, the top stack frame of the thread is automatically |
| selected. The Variables view shows the stack frame's variables and |
| their values. Complex variables can be further examined by expanding |
| them to show the values of their members. |
| </p> |
| <p> |
| When a thread is suspended and the cursor is hovered over a variable in the Java editor, the value of that variable is displayed. |
| </p> |
| <p> |
| <img border="0" src="../images/ngrelc.png" alt="Related concepts" ><br> |
| <a href="../concepts/concepts-10.htm">Debugger</a><br> |
| <a href="../concepts/concepts-7.htm">Java editor</a><br> |
| <a href="../concepts/concepts-5.htm">Java perspectives</a> |
| </p> |
| <p> |
| <img border="0" src="../images/ngrelt.png" alt="Related tasks" ><br> |
| <a href="../tasks/tasks-147.htm">Catching Java exceptions</a><br> |
| <a href="../tasks/tasks-138.htm">Evaluating expressions</a><br> |
| <a href="../tasks/tasks-135.htm">Resuming the execution of suspended threads</a><br> |
| <a href="../tasks/tasks-136.htm">Stepping through the execution of a program</a> |
| </p> |
| <p> |
| <img border="0" src="../images/ngrelr.png" alt="Related reference" ><br> |
| <a href="../reference/ref-51.htm">Debug view</a><br> |
| <a href="../reference/ref-74.htm">Variables view</a> |
| </p> |
| |
| </body> |
| </html> |
| |