# Debugging tests that crash

**URL:** <https://ziggit.dev/t/debugging-tests-that-crash/6604>\
**Category:** Help\
**Tags:** language, memory-management\
**Created:** [October 30, 2024, 8:10pm UTC](https://ziggit.dev/t/debugging-tests-that-crash/6604 "2024-10-30T20:10:21Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dimdin](https://ziggit.dev/user_avatar/ziggit.dev/dimdin/32/1457_2.png) [@dimdin](https://ziggit.dev/u/dimdin)\
**Post date:** [October 30, 2024, 9:36pm UTC](https://ziggit.dev/t/debugging-tests-that-crash/6604/2 "2024-10-30T21:36:52Z")

</div>

> [@Zig Debugging with LLDB](https://ziggit.dev/t/zig-debugging-with-lldb/3931/10):
>
> Handy tip when trying to debug tests: if the test binary crashes it will print the command that you could paste into a debugger. And one way to make it crash is to use @breakpoint() somewhere. Then you kill 2 birds with 1 stone because the debugger will stop at your breakpoint.

---

_[View the full topic](https://ziggit.dev/t/debugging-tests-that-crash/6604)._
