Bug fixing and adding StackTrace to QueryDebugger