Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Websphere Studio debugging, Drop to selected frame

 
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.
 
Get off me! Here, read this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic