mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
classref: Sync with latest 4.0-dev
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
:github_url: hide
|
||||
|
||||
.. Generated automatically by doc/tools/makerst.py in Godot's source tree.
|
||||
.. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
|
||||
.. DO NOT EDIT THIS FILE, but the @GDScript.xml source instead.
|
||||
.. The source is found in doc/classes or modules/<name>/doc_classes.
|
||||
|
||||
@@ -185,6 +185,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:** Not supported for calling from threads. Instead, this will return an empty array.
|
||||
|
||||
----
|
||||
|
||||
.. _class_@GDScript_method_inst2dict:
|
||||
@@ -263,7 +265,16 @@ Returns a :ref:`Resource<class_Resource>` from the filesystem located at ``path`
|
||||
|
||||
- void **print_debug** **(** ... **)** |vararg|
|
||||
|
||||
Like :ref:`@GlobalScope.print<class_@GlobalScope_method_print>`, but prints only when used in debug mode.
|
||||
Like :ref:`@GlobalScope.print<class_@GlobalScope_method_print>`, but includes the current stack frame when running with the debugger turned on.
|
||||
|
||||
Output in the console would look something like this:
|
||||
|
||||
::
|
||||
|
||||
Test print
|
||||
At: res://test.gd:15:_process()
|
||||
|
||||
**Note:** Not supported for calling from threads. Instead of the stack frame, this will print the thread ID.
|
||||
|
||||
----
|
||||
|
||||
@@ -271,7 +282,7 @@ Like :ref:`@GlobalScope.print<class_@GlobalScope_method_print>`, but prints only
|
||||
|
||||
- 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. Only works when running with debugger turned on.
|
||||
|
||||
Output in the console would look something like this:
|
||||
|
||||
@@ -279,6 +290,8 @@ Output in the console would look something like this:
|
||||
|
||||
Frame 0 - res://test.gd:16 in function '_process'
|
||||
|
||||
**Note:** Not supported for calling from threads. Instead of the stack trace, this will print the thread ID.
|
||||
|
||||
----
|
||||
|
||||
.. _class_@GDScript_method_range:
|
||||
|
||||
Reference in New Issue
Block a user