2
0
Эх сурвалжийг харах

Merge pull request #63243 from timothyqiu/print-debug-doc

[3.x] Fix documentation for `print_debug`
Rémi Verschelde 3 жил өмнө
parent
commit
8c9485b6a8

+ 6 - 1
modules/gdscript/doc_classes/@GDScript.xml

@@ -716,7 +716,12 @@
 		<method name="print_debug" qualifiers="vararg">
 			<return type="void" />
 			<description>
-				Like [method print], but prints only when used in debug mode.
+				Like [method print], but includes the current stack frame when running with the debugger turned on.
+				Output in the console would look something like this:
+				[codeblock]
+				Test print
+				   At: res://test.gd:15:_process()
+				[/codeblock]
 			</description>
 		</method>
 		<method name="print_stack">