# Display slices in the debugger

**URL:** <https://ziggit.dev/t/display-slices-in-the-debugger/5079>\
**Category:** Help\
**Tags:** debugger\
**Created:** [July 10, 2024, 7:30pm UTC](https://ziggit.dev/t/display-slices-in-the-debugger/5079 "2024-07-10T19:30:48Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![mnemnion](https://ziggit.dev/user_avatar/ziggit.dev/mnemnion/32/2478_2.png) [@mnemnion](https://ziggit.dev/u/mnemnion)\
**Post date:** [July 10, 2024, 7:30pm UTC](https://ziggit.dev/t/display-slices-in-the-debugger/5079/1 "2024-07-10T19:30:48Z")

</div>

I’m debugging some slice-heavy code using `lldb` from VSCode, and it’s excessively difficult to follow, because the slices aren’t null-terminated, so the debugger displays arbitrary amounts of string, and I have to figure out how much of it actually belongs to the slice.

Is there a trick to get the `slice.ptr` section to display just the amount covered by `slice.len`?

---

_[View the full topic](https://ziggit.dev/t/display-slices-in-the-debugger/5079)._
