Browse Source

Fix doc for print_debug

Haoyu Qiu 3 years ago
parent
commit
a3b282c6cc
1 changed files with 6 additions and 1 deletions
  1. 6 1
      modules/gdscript/doc_classes/@GDScript.xml

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

@@ -716,7 +716,12 @@
 		<method name="print_debug" qualifiers="vararg">
 		<method name="print_debug" qualifiers="vararg">
 			<return type="void" />
 			<return type="void" />
 			<description>
 			<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>
 			</description>
 		</method>
 		</method>
 		<method name="print_stack">
 		<method name="print_stack">