# Examine VTK Stack

**URL:** <https://discourse.vtk.org/t/examine-vtk-stack/12278>\
**Category:** Development\
**Created:** [September 13, 2023, 8:37pm UTC](https://discourse.vtk.org/t/examine-vtk-stack/12278 "2023-09-13T20:37:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Larry](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/l/47e85d/32.png) [@Larry](https://discourse.vtk.org/u/Larry)\
**Post date:** [September 13, 2023, 8:37pm UTC](https://discourse.vtk.org/t/examine-vtk-stack/12278/1 "2023-09-13T20:37:03Z")

</div>

How can you effectively set a breakpoint in your debugger to examine the stack when encountering an error in VTK?

---

<div class="post-metadata">

**Author:** ![Colin](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/c/e19b73/32.png) [@Colin](https://discourse.vtk.org/u/Colin)\
**Post date:** [September 13, 2023, 8:38pm UTC](https://discourse.vtk.org/t/examine-vtk-stack/12278/2 "2023-09-13T20:38:35Z")

</div>

Hey Larry,

If you have VTK built in Debug or RelWithDebInfo modes, you can set a breakpoint in your debugger at the location of the error.  
This will allow you to examine the stack and get the necessary information, such as the filename and line number, to set the breakpoint.
