Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Websphere Studio debugging, Drop to selected frame

 
Sean Sullivan
Ranch Hand
Posts: 427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic