In my project I creating debug adapter for Visual Studio Code for AngelScript, and sometime have problem.
When I inspecting some variable, context->IsVarInScope return true for it varibale, but context->GetAddressOfVar return nullptr for it, if I do not set returnAddressOfUnitializedObjects to true, because DetermineLiveObjects tell that variable not initialized. But if I use GetAddressOfVar with true for unitialized vars, I got valid address and alive object.
I have not yet been able to identify an obvious pattern, but in my case it was a variable of my internal type “string”, declared inside the loop “for”:
for (...) {
string name;
... some processing of name
script.addNamedItem(name, obj, global);
}