Merge pull request #91006 from reduz/live-backtrace

Ability to print and log script backtraces
This commit is contained in:
Thaddeus Crews
2025-04-24 17:18:52 -05:00
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" />
@@ -747,6 +754,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" />