Skip to content

Commit

Permalink
update LoadConfig recurse 16
Browse files Browse the repository at this point in the history
  • Loading branch information
visualfc committed Jul 5, 2018
1 parent e6ba7b0 commit c2e5d6d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions liteidex/src/plugins/dlvdebugger/dlvrpcdebugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ void DlvRpcDebugger::updateWatch(int id)
if (s.contains(".")) {
gid = -1;
}
VariablePointer pt = m_dlvClient->EvalVariable(EvalScope(gid),s,LoadConfig::Max());
VariablePointer pt = m_dlvClient->EvalVariable(EvalScope(gid),s,LoadConfig::CustomeLong(16));
if (pt) {
watch.push_back(*pt);
} else {
Expand Down Expand Up @@ -961,8 +961,8 @@ void DlvRpcDebugger::updateWatch(int id)

void DlvRpcDebugger::updateVariable(int id)
{
QList<Variable> vars = m_dlvClient->ListLocalVariables(EvalScope(id),LoadConfig::Max());
QList<Variable> args = m_dlvClient->ListFunctionArgs(EvalScope(id),LoadConfig::Max());
QList<Variable> vars = m_dlvClient->ListLocalVariables(EvalScope(id),LoadConfig::CustomeLong(16));
QList<Variable> args = m_dlvClient->ListFunctionArgs(EvalScope(id),LoadConfig::CustomeLong(16));

QMap<QString,QString> saveMap;
emit beginUpdateModel(LiteApi::VARS_MODEL);
Expand Down
4 changes: 2 additions & 2 deletions liteidex/src/utils/dlvclient/dlvtypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,9 @@ struct LoadConfig
int MaxArrayValues;
int MaxStructFields;

static LoadConfig Max()
static LoadConfig CustomeLong(int recurse = 16)
{
static LoadConfig lc(true,64,128,128,-1);
static LoadConfig lc(true,recurse,128,128,-1);
return lc;
}
static LoadConfig Long()
Expand Down

0 comments on commit c2e5d6d

Please sign in to comment.