Adds support for debugger.
This commit is contained in:
@@ -13,8 +13,17 @@ public:
|
||||
void Run(asIScriptContext* ctx) {
|
||||
ctx->PushState();
|
||||
ctx->Prepare(_function);
|
||||
ctx->SetUserData(_env.get());
|
||||
ctx->SetUserData(_env.get(), 684);
|
||||
auto e = ctx->Execute();
|
||||
if (e == asEXECUTION_SUSPENDED) {
|
||||
auto s = ctx->GetState();
|
||||
while (s != asEXECUTION_FINISHED && s != asEXECUTION_EXCEPTION && s != asEXECUTION_ABORTED &&
|
||||
s != asEXECUTION_ERROR) {
|
||||
s = ctx->GetState();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
_env->CollectGarbage();
|
||||
if (e == asEXECUTION_EXCEPTION) {
|
||||
_errorMessage = ctx->GetExceptionString();
|
||||
@@ -23,7 +32,6 @@ public:
|
||||
return;
|
||||
}
|
||||
ctx->PopState();
|
||||
Ensure(e == asEXECUTION_FINISHED);
|
||||
_result = TestResult::Success;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user