{"repo":"greymattergames/unbug","free":true,"listed":false,"github":"https://github.com/greymattergames/unbug","clone":"git clone https://github.com/greymattergames/unbug.git","description":"Debug breakpoint assertions for Rust","language":"Rust","stars":221,"topics":["debugging","rust"],"license":"Apache-2.0","category":"dev-tools","readme_excerpt":"Unbug Debug breakpoint assertions for Rust. These macros are designed to help developers catch errors during debugging sessions that would otherwise be a panic (which may not be desirable in certain contexts) or simply a log message (which may go unnoticed). Shims are provided so breakpoints will not be compiled in release builds. This means that the macros in this crate can be used freely throughout your code without having to conditionally compile them out yourself. [!NOTE] Unbug was developed for our upcoming multiplayer automation game, Computronium. Learn more at https://greymattergames.com Examples Programmatic breakpoint assertions debug fail macro Usage Prepare your environment for debugging Rust. [!IMPORTANT] If you are using VSCode you will need the Rust Analyzer and Code LLDB (Linux/Mac) or the C/C++ (Windows) extensions. See Microsoft's Documentation on Rust Debugging in VSCode. 1. Add Unbug to your project's dependencies Cargo.toml : 2. Set up a debug launch configuration Sample VSCode .vscode/launch.json with LLDB (Linux/Mac): Sample VSCode .vscode/launch.json with msvc (Windows): and complimentary .vscode/tasks.json 3. Select the debug launch configuration for your platform and start debugging In VSCode, open the \"Run and Debug\" panel from the left sidebar. launch configurations can be now found in the dropdown menu next to the green \"Start Debugging\" button. When debugging is active, controls for resume execution, step-over, and step-out are at the top of the ","default_branch":null,"files":null,"tree":[],"storefront":"/r/greymattergames","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/greymattergames/unbug/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}