Prints a stack trace at the current code location. See also [method get_stack]. 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 (): بار() func bar (): چاپ (get_stack ()) [/ codeblock] چاپ می کرد [codeblock] [{تابع: نوار ، خط: 12 ، منبع: res: //script.gd} ، {تابع: foo ، خط: 9 ، منبع: res: //script.gd} ، {تابع: _ از قبل ، خط: 6 ، منبع: res: //script.gd}] [/ codeblock]
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 ():
بار()
func bar ():
چاپ (get_stack ())
[/ codeblock]
چاپ می کرد
[codeblock]
[{تابع: نوار ، خط: 12 ، منبع: res: //script.gd} ، {تابع: foo ، خط: 9 ، منبع: res: //script.gd} ، {تابع: _ از قبل ، خط: 6 ، منبع: res: //script.gd}]
[/ codeblock]