thx
extra func:
pythonitemmodule.cpp open
search
TraceError("Cannot find item by %d", iIndex);
add above
PyThreadState* tstate = PyThreadState_GET();
if (tstate)
{
for (PyFrameObject* frame = tstate->frame; frame; frame = frame->f_back)
{
PyCodeObject* f_code = frame->f_code;
if (!f_code || !f_code->co_filename || !f_code->co_name)
continue;
const char* filename = PyString_AsString(f_code->co_filename);
const char* funcname = PyString_AsString(f_code->co_name);
TraceError("filename=%s, name=%s", filename, funcname);
}
}