Unbug – Rust macros for programmatically invoking breakpoints

Unbug is a crate that provides macros to programmatically invoke debugging breakpoints, helping developers catch errors during debugging sessions more effectively. The crate’s internals are disabled by default and can be used throughout the code without the need to conditionally compile them out. However, activating the breakpoints requires Nightly Rust and enabling the experimental core_intrinsics feature. To avoid pausing on internal modules, immediately return or continue after using the macros. The crate offers macros like ensure, ensure_always, and fail to trigger debuggers when needed. Detailed instructions on setting up debugging environments in Rust using VSCode are provided. Unbug is free and open-source under the MIT or Apache License.

https://github.com/greymattergames/unbug

To top