godot-rust / godot-rust/gdext

Customize panic handling

Open
#411 1 comment 16 reactions 0 assignees View on GitHub
c: core feature
Dominant language
Rust
Stars
5.2k
Forks
312
Avg merge
12h 59m
Merged PRs (30d)
9

Description

When a panic in gdext or Rust code happens, it is currently caught and displayed as a Godot error and on the command line.

Users may want to customize this. Behaviors could be:
* Godot/console message of varying verbosity levels (message -> context -> stacktrace)
* Instantly crash (to trigger a breakpoint)
* Trigger a breakpoint without crashing (only possible with nightly [`breakpoint`](https://doc.rust-lang.org/std/intrinsics/fn.breakpoint.html) or platform specific crates/code)
* Custom handler (would need to ensure thread safety)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.