diff --git a/scene/main/node.cpp b/scene/main/node.cpp index 4e9a33ba8411..afb75579a8cb 100644 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -2837,7 +2837,16 @@ static void _Node_debug_sn(Object *p_obj) { } else { path = String(p->get_name()) + "/" + p->get_path_to(n); } - print_line(itos(p_obj->get_instance_id()) + " - Stray Node: " + path + " (Type: " + n->get_class() + ")"); + + String script_file_string; + if (!n->get_script().is_null()) { + Ref