Debugger: Add debug output for parseAndEvaluate

Change-Id: If5ed128d32c2dff6880a78cc9a5ee535e094da7d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2017-02-01 12:25:37 +01:00
parent bb76740691
commit 0a5ac41b23

View File

@@ -104,6 +104,8 @@ static PyObject *cdbext_parseAndEvaluate(PyObject *, PyObject *args) // -> Value
char *expr;
if (!PyArg_ParseTuple(args, "s", &expr))
Py_RETURN_NONE;
if (debugPyCdbextModule)
DebugPrint() << "evaluate expression: " << expr;
CIDebugControl *control = ExtensionCommandContext::instance()->control();
control->SetExpressionSyntax(DEBUG_EXPR_CPLUSPLUS);
DEBUG_VALUE value;