Are you sure that this syntax "beginQueryExecution( DebuggerQuery $query )" ? I cannot find it in php reference.