Skip to content

Commit

Permalink
LibCore: Include object names in Object::dump_tree() output
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekling committed Sep 14, 2020
1 parent 2e547ce commit aa3c289
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Libraries/LibCore/Object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit aa3c289

Please sign in to comment.