This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Websphere and the fly likes Websphere Studio debugging, Drop to selected frame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Websphere
Bookmark "Websphere Studio debugging, Drop to selected frame" Watch "Websphere Studio debugging, Drop to selected frame" New topic
Author

Websphere Studio debugging, Drop to selected frame

Sean Sullivan
Ranch Hand

Joined: Sep 09, 2001
Posts: 427
In the past, I built Java applications using IBM VisualAge for Java. The VisualAge debugger had a feature called "Drop to selected frame"

Presently, I am using Websphere Studio 5.1.1

Does Websphere Studio's debugger have the "Drop to selected frame" feature?
Sean Sullivan
Ranch Hand

Joined: Sep 09, 2001
Posts: 427
The underlying Ecipse debug API's provide a "drop to frame" capability.

Does Websphere Studio's debugger allow me to drop to a frame?

org.eclipse.jdt.debug.core.IJavaStackFrame

public void dropToFrame()
throws DebugException

Drops to this stack frame by popping frames in this frame's owning thread until this stack frame is the top stack frame. The execution location is set to the beginning of this frame's associated method.

public boolean supportsDropToFrame()

Returns whether this stack frame currently supports the drop to frame operation. Note that not all VMs support the operation.

Returns:

whether this stack frame currently supports drop to frame
Sean Sullivan
Ranch Hand

Joined: Sep 09, 2001
Posts: 427
The Websphere Studio 5.1.1 documentation describes the "Drop to frame" feature:

---
Context menu: Drop to Frame

This command lets you drop back and reenter a specified stack frame. This feature is similar to "running backwards" and restarting your program part-way through.

To drop back and reenter a specified stack frame, select the stack frame that you want to "drop" to, and select Drop to Frame from the context menu.

Some caveats apply to this feature:

You cannot drop past a native method on the stack.
Global data are unaffected and will retain their current values. For example, a static vector containing elements will not be cleared.
Note: This command is only enabled if the underlying VM supports this feature.
---

I using the Websphere 4.0 Test Environment. I'd like to be able
to use the "Drop to frame" feature while debugging a 4.0 application.
 
GeeCON Prague 2014
 
subject: Websphere Studio debugging, Drop to selected frame