Things to check
English | Czech | ||
---|---|---|---|
debug | ladění | Godot Engine | |
editor | editor | Godot Engine | |
frame | Godot Engine | ||
function | Godot Engine | ||
instance | instance | Godot Engine | |
output | výstup | Godot Engine |
English | Czech | ||
---|---|---|---|
debug | ladění | Godot Engine | |
editor | editor | Godot Engine | |
frame | Godot Engine | ||
function | Godot Engine | ||
instance | instance | Godot Engine | |
output | výstup | Godot Engine |
The output in the console may look like the following:
[codeblock lang=text]
Frame 0 - res://test.gd:16 in function '_process'
[/codeblock]
[b]Note:[/b] This function only works if the running instance is connected to a debugging server (i.e. an editor instance). [method print_stack] will not work in projects exported in release mode, or in projects exported in debug mode if not connected to a debugging server.
[b]Note:[/b] Calling this function from a [Thread] is not supported. Doing so will instead print the thread ID.
[codeblock]
func _ready():
foo()
func foo():
bar()
func bar():
print(get_stack())
[/codeblock]
A to by vypsalo:
[codeblock]
[{function:bar, line:12, source:res://script.gd}, {function:foo, line:9, source:res://script.gd}, {function:_ready, line:6, source:res://script.gd}]
[/codeblock]