Beispiel #1
0
void Variable::attachMaybe(QObject *callback, const char *callbackMethod)
{
    DebugSession* session = currentSession();
    if (session) {
        QVariantMap args;
        args["frame"] = session->frameStackModel()->currentFrame();
        args["expression"] = expression();
        session->sendCommand("evaluate", args, new EvaluateCallback(this, callback, callbackMethod));
    }
}
Beispiel #2
0
void Variable::fetchMoreChildren()
{
    Q_ASSERT(m_ref);
    DebugSession* session = currentSession();
    if (session) {
        QVariantMap args;
        args["handle"] = m_ref;
        Callback<Variable>* cb = new Callback<Variable>(this, &Variable::handleLookup);
        session->sendCommand("lookup", args, cb);
    }
}