diff --git a/Source/Engine/Debug/DebugCommands.cpp b/Source/Engine/Debug/DebugCommands.cpp index 19c569b8a..8ea17f177 100644 --- a/Source/Engine/Debug/DebugCommands.cpp +++ b/Source/Engine/Debug/DebugCommands.cpp @@ -53,6 +53,11 @@ struct CommandData } // Parse arguments + if (args == StringView(TEXT("?"), 1)) + { + LOG(Warning, "TODO: debug commands help/docs printing"); // TODO: debug commands help/docs printing (use CodeDocsModule that parses XML docs) + return; + } Array params; params.Resize(sigParams.Count()); Array argsSeparated; @@ -140,6 +145,8 @@ namespace continue; if (!useClass && !method->HasAttribute(attribute)) continue; + if (useClass && method->GetVisibility() != MVisibility::Public) + continue; auto& commandData = Commands.AddOne(); BUILD_NAME(commandData, method->GetName()); @@ -155,6 +162,8 @@ namespace continue; if (!useClass && !field->HasAttribute(attribute)) continue; + if (useClass && field->GetVisibility() != MVisibility::Public) + continue; auto& commandData = Commands.AddOne(); BUILD_NAME(commandData, field->GetName()); @@ -170,6 +179,8 @@ namespace continue; if (!useClass && !property->HasAttribute(attribute)) continue; + if (useClass && property->GetVisibility() != MVisibility::Public) + continue; auto& commandData = Commands.AddOne(); BUILD_NAME(commandData, property->GetName());