Making Links or Labels to Printers upon Print("text")

Godot Version

Print the Printer to Console

I’m looking for a way to somewhat automate a way to identify who printed what, since I have a lot of scripts all printing different things.

Is there a way to make it so that when an object prints to console, it states its name alongside whatever it’s printing? (Like an addon for this or smth that makes links I can click on to take me to the thing that printed a message.)

I’m considering just doing this manually by having each and every print(“text”) command include the name of the object (IE “message” → “ObjectName: message”), but we have technology, no? (Or this sorta old fashioned way will do, if no one has a solution…)

signal printed(FunkName:String)

func PrintWithSignal(FunkName:String,PrintMessage:String, RunThePrinter:bool):
	if RunThePrinter:
		printed.emit(FunkName)
		print(PrintMessage)

func FunkToTest():
	var ShouldNotBe5:int = 0
	for i in 7:
		ShouldNotBe5=i
		PrintWithSignal("FunkToTest","ShouldNotBe5 was 5",i==5)

func _on_printed(FunkName: String) -> void:
	print("what func name gave me problems : " + FunkName)

You can use print_debug() for that.