示例#1
0
void DebuggerDBG::addWatch(const QString& expression)
{
  m_wathcesList.append(expression);

  if(isRunning())
  {
    m_net->requestWatch(expression, m_currentExecutionPointID);
  }
  else
  {
    updateWatch(QString::null, expression);
  }
}
示例#2
0
void DebuggerXD::addWatch(const QString& expression)
{
  m_wathcesList.append(expression);

  if(isRunning())
  {
    m_net->requestWatch(expression);
  }
  else
  {
    //build a variable and send it to the manager
    PHPVariable* var = new PHPVariable(expression);
    PHPScalarValue* value = new PHPScalarValue(var);
    var->setValue(value);
    updateWatch(var);
  }
}
void DocumentWatcher::resumeWatch(Document* document)
{
	m_documents[document].ignored = false;
	updateWatch(document);
}