Ability to print and log script backtraces

Co-authored-by: Mikael Hermansson <mikael@hermansson.io>
This commit is contained in:
reduz
2025-03-31 21:39:43 +02:00
committed by Mikael Hermansson
parent f704113abe
commit d1dcb40d56
32 changed files with 813 additions and 95 deletions

View File

@@ -11,6 +11,13 @@
<link title="Operating System Testing Demo">https://godotengine.org/asset-library/asset/2789</link>
</tutorials>
<methods>
<method name="add_logger">
<return type="void" />
<param index="0" name="logger" type="Logger" />
<description>
Add a custom logger to intercept the internal message stream.
</description>
</method>
<method name="alert">
<return type="void" />
<param index="0" name="text" type="String" />
@@ -743,6 +750,13 @@
[b]Note:[/b] On exported Windows builds, run the console wrapper executable to access the terminal. If standard input is console, calling this method without console wrapped will freeze permanently. If standard input is pipe or file, it can be used without console wrapper. If you need a single executable with full console support, use a custom build compiled with the [code]windows_subsystem=console[/code] flag.
</description>
</method>
<method name="remove_logger">
<return type="void" />
<param index="0" name="logger" type="Logger" />
<description>
Remove a custom logger added by [method add_logger].
</description>
</method>
<method name="request_permission">
<return type="bool" />
<param index="0" name="name" type="String" />