Skip to content

Commit 15925a9

Browse files
committed
feat: Extend queryHelper condition to include all lua types
1 parent 261c623 commit 15925a9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

emmy_debugger/src/debugger/emmy_debugger.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,9 @@ void Debugger::GetVariable(lua_State *L, Idx<Variable> variable, int index, int
371371
variable->valueType = type;
372372

373373

374-
if (queryHelper && (type == LUA_TTABLE || type == LUA_TUSERDATA || type == LUA_TFUNCTION)) {
374+
if (queryHelper && (type == LUA_TTABLE || type == LUA_TUSERDATA || type == LUA_TFUNCTION
375+
|| type == LUA_TSTRING || type == LUA_TNUMBER || type == LUA_TLIGHTUSERDATA || type == LUA_TTHREAD
376+
|| type == LUA_TNONE || type == LUA_TNIL || type == LUA_TBOOLEAN)) {
375377
if (manager->extension.QueryVariable(L, variable, typeName, index, depth)) {
376378
return;
377379
}

0 commit comments

Comments
 (0)