classref: Sync with current 3.5 branch (338114d)

This commit is contained in:
Godot Organization
2023-04-25 10:05:26 +00:00
parent f846dd9eb4
commit 255648d5f5
25 changed files with 188 additions and 31 deletions

View File

@@ -646,7 +646,7 @@ Returns a reference to the specified function ``funcname`` in the ``instance`` n
- :ref:`Array<class_Array>` **get_stack** **(** **)**
Returns an array of dictionaries representing the current call stack.
Returns an array of dictionaries representing the current call stack. See also :ref:`print_stack<class_@GDScript_method_print_stack>`.
::
@@ -665,6 +665,8 @@ would print
[{function:bar, line:12, source:res://script.gd}, {function:foo, line:9, source:res://script.gd}, {function:_ready, line:6, source:res://script.gd}]
\ **Note:** :ref:`get_stack<class_@GDScript_method_get_stack>` only works if the running instance is connected to a debugging server (i.e. an editor instance). :ref:`get_stack<class_@GDScript_method_get_stack>` will not work in projects exported in release mode, or in projects exported in debug mode if not connected to a debugging server.
----
.. _class_@GDScript_method_hash:
@@ -1084,7 +1086,7 @@ Output in the console would look something like this:
- void **print_stack** **(** **)**
Prints a stack track at code location, only works when running with debugger turned on.
Prints a stack trace at the current code location. See also :ref:`get_stack<class_@GDScript_method_get_stack>`.
Output in the console would look something like this:
@@ -1092,6 +1094,8 @@ Output in the console would look something like this:
Frame 0 - res://test.gd:16 in function '_process'
\ **Note:** :ref:`print_stack<class_@GDScript_method_print_stack>` only works if the running instance is connected to a debugging server (i.e. an editor instance). :ref:`print_stack<class_@GDScript_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.
----
.. _class_@GDScript_method_printerr: