summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorreduz <reduzio@gmail.com>2021-07-20 17:01:18 -0300
committerreduz <reduzio@gmail.com>2021-07-20 17:31:51 -0300
commitcee905f04f453dc7823690bc5c7595a1ee7ef2cd (patch)
treec512ef255ad4a3b69c868dae07704dd06a3339aa /main
parent693f9b4e20f76d56ead91f8a8cad204516d2d953 (diff)
Adds ability to debug stringnames
* References (which include hash tables) can be profiled with --debug-stringnames
Diffstat (limited to 'main')
-rw-r--r--main/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/main/main.cpp b/main/main.cpp
index 0651f4b93f..1e5445fd93 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -986,11 +986,13 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
} else if (I->get() == "-d" || I->get() == "--debug") {
debug_uri = "local://";
OS::get_singleton()->_debug_stdout = true;
-#if defined(DEBUG_ENABLED) && !defined(SERVER_ENABLED)
+#if defined(DEBUG_ENABLED)
} else if (I->get() == "--debug-collisions") {
debug_collisions = true;
} else if (I->get() == "--debug-navigation") {
debug_navigation = true;
+ } else if (I->get() == "--debug-stringnames") {
+ StringName::set_debug_stringnames(true);
#endif
} else if (I->get() == "--remote-debug") {
if (I->next()) {