Add Core::GetState() for debugger
More Qt changes for debugger