DebugPlugin.getDefault().getLaunchManager().getDebugTargets();
for (int i = 0; i < targets.length; i++)
{
if (!(targets[i] instanceof DebugTarget)) continue;
DebugTarget target = (DebugTarget) targets[i];
try
{
IThread[] threads = target.getThreads();
IStackFrame[] frames = threads[0].getStackFrames();
for (int j = 0; j < frames.length; j++)
((StackFrame) frames[j]).discardCachedVars();
}