浏览代码

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

[3.x] Fix documentation for `print_debug`
Rémi Verschelde 3 年之前
父节点
当前提交
8c9485b6a8
共有 1 个文件被更改,包括 6 次插入1 次删除
  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">
 			<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">