1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3
* Copyright � 2007 Sun Microsystems, Inc. All rights reserved.
4
* Use is subject to license terms.
9
<title>Popping a Call from the Call Stack</title>
10
<link rel="StyleSheet" href="nbdocs://org.netbeans.modules.usersguide/org/netbeans/modules/usersguide/ide.css" type="text/css">
14
<h2>Popping a Call From the Call Stack</h2>
16
<small><a href="#seealso">See Also</a></small></p>
18
You can change the execution of your program so that the next statement to be executed is one of the
19
calls made earlier on the stack.
20
In general, popping, or removing, a call from the call stack
21
does not undo any effects that the call caused. For example,
22
if a call opened a database connection and then that
24
database connection will remain open.
26
<ul class="note"><li>You can only pop a call if the program being debugged is paused.</ul>
28
<p><b>To pop the most recent call from the call stack:</b>
31
<li>From the main menu, choose Run > Stack > Pop Topmost Call.
32
<p> The call is removed from the call stack. The program counter is moved to the
33
line before the instruction that made the removed call. If the source code
34
is available, the focus of the Source Editor is set to that line. When you
35
continue program execution, the call is repeated.</p>
40
<p><b>To pop multiple calls from the call stack:</b>
43
<li>In the Call Stack window, right-click the call that you want to remain at
44
the top of the call stack and choose Pop to Here.
45
<p> All of the calls above the selected call are removed from the call stack.
46
The program counter is moved to the line before the instruction that made
47
the removed call. <!--question : what does made the removed call" mean?-->If the source code is available, the focus of the Source
48
Editor is set to that line. When you continue program execution, the call
49
is repeated.</p> </li>
53
<dt><a name="seealso">See Also</a></dt>
54
<dd><a href="debug_callstack.html">Using the Call Stack </a></dd>
58
<small><a href="../credits.html">Legal Notices</a></small>
59
<table border="0" cellpadding="20">
60
<tr><td> </td></tr>
61
<tr><td> </td></tr>
62
<tr><td> </td></tr>