// clear our current frame display
propertyPut(DISPLAY_FRAME_NUMBER, 0);
/* dump a context line to the console */
Location l = getCurrentLocation();
// figure out why we stopped
int reason = SuspendReason.Unknown;
try { reason = m_session.suspendReason(); } catch(PlayerDebugException pde) {}
// then see if it because of a swfloaded event
if( reason == SuspendReason.ScriptLoaded)
{
// since the player takes a long time to provide swf/swd, try 80 * 250ms = ~20s
if (propertyGet(METADATA_ATTEMPTS) > 0)
try { waitForMetaData(80); } catch(InProgressException ipe) { }
m_fileInfo.setDirty();
processEvents();
propagateBreakpoints();
sb.append(getLocalizationManager().getLocalizedTextString("additionalCodeLoaded")); //$NON-NLS-1$
sb.append(m_newline);
if (resolveBreakpoints(sb))
sb.append(getLocalizationManager().getLocalizedTextString("setAdditionalBreakpoints")+m_newline); //$NON-NLS-1$
else
sb.append(getLocalizationManager().getLocalizedTextString("fixBreakpoints")+m_newline); //$NON-NLS-1$
}
else if ( l == null || l.getFile() == null )
{
// no idea where we are ?!?
propertyPut(LAST_FRAME_DEPTH, 0);
sb.append(getLocalizationManager().getLocalizedTextString("executionHalted")); //$NON-NLS-1$
sb.append(' ');
/** disable this line (and enable the one after) if implementation Extensions are not provided */
appendBreakInfo(sb);
//sb.append("unknown location");
}
else
{
SourceFile file = l.getFile();
name = file.getName();
line = l.getLine();
String funcName = file.getFunctionNameForLine(m_session, line) ;
// where were we last time
int lastModule = propertyGet(LIST_MODULE);
int lastDepth = propertyGet(LAST_FRAME_DEPTH);