blob: ae8c977e81b6f64b4f0b8928a2018ac0643c68d9 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<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>
Suspending Threads
</title>
</head>
<body>
<h1>
Suspending Threads
</h1>
<p>
To suspend an executing thread:
</p>
<ol>
<li>
Select the thread in the <a href="../reference/views/debug/ref-debug_view.htm"><strong>Debug View</strong></a>. </li>
<li>
Click the <strong><a href="../reference/views/debug/ref-suspend.htm">Suspend</a></strong> button [ <img src="../images/org.eclipse.debug.ui/elcl16/suspend_co.png" alt="Suspend"> ] in the view toolbar.</li>
</ol>
<p>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 <strong>Debug Perspective</strong>. </p>
<p>
When a thread suspends, the top stack frame of the thread is automatically
selected.&nbsp; The <a href="../reference/views/variables/ref-variables_view.htm"><strong>Variables View</strong></a> shows the stack frame's variables and
their values.&nbsp; 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/cdebugger.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="task-catching_exceptions.htm">Catching Java exceptions</a><br>
<a href="task-evaluating_expressions.htm">Evaluating expressions</a><br>
<a href="task-resuming_threads.htm">Resuming the execution of suspended threads</a><br>
<a href="task-stepping.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/views/debug/ref-debug_view.htm">Debug view</a><br>
<a href="../reference/views/debug/ref-resume.htm">Resume command</a> <br>
<a href="../reference/views/debug/ref-suspend.htm">Suspend command</a> <br>
<a href="../reference/views/variables/ref-variables_view.htm">Variables view</a>
</p>
</body>
</html>