summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Libraries/LibCore/Object.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Libraries/LibCore/Object.cpp b/Libraries/LibCore/Object.cpp
index 0aaf415f83..2c4b87cece 100644
--- a/Libraries/LibCore/Object.cpp
+++ b/Libraries/LibCore/Object.cpp
@@ -155,7 +155,10 @@ void Object::dump_tree(int indent)
for (int i = 0; i < indent; ++i) {
printf(" ");
}
- printf("%s{%p}\n", class_name(), this);
+ printf("%s{%p}", class_name(), this);
+ if (!name().is_null())
+ printf(" %s", name().characters());
+ printf("\n");
for_each_child([&](auto& child) {
child.dump_tree(indent + 2);