# Debug Adapter: Adding Stack Trace Formatting support

**URL:** https://discourse.cmake.org/t/debug-adapter-adding-stack-trace-formatting-support/12828
**Category:** Development
**Created:** [October 23, 2024, 4:22pm UTC](https://discourse.cmake.org/t/debug-adapter-adding-stack-trace-formatting-support/12828 "2024-10-23T16:22:55Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jophippe](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/j/e79b87/32.png) [@jophippe](https://discourse.cmake.org/u/jophippe)
#### Post date: [October 23, 2024, 4:22pm UTC](https://discourse.cmake.org/t/debug-adapter-adding-stack-trace-formatting-support/12828/1 "2024-10-23T16:22:55Z")

</div>

Hi CMake Team! I’m a developer on the Visual Studio CMake integration, and we got a request to improve the Call Stack view when using the CMake debugger. Right now, the Call Stack in VS only shows the function name, and we got asked to show additional information like line numbers.  
Essentially, we want the Call Stack view to look like this:

 ![image](https://discourse.cmake.org/uploads/default/original/2X/c/c022be12b56f5475f86ca14ab3d13b175e5a0cb3.png)

To do that, I’m working on adding support for reading the format property from the [StackTrace request](https://microsoft.github.io/debug-adapter-protocol/specification#Requests_StackTrace) in the Debug Adapter and formatting the returned StackFrame name based on that format. Let me know if you have any questions or comments.  
Thanks!

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [July 20, 2025, 1:36am UTC](https://discourse.cmake.org/t/debug-adapter-adding-stack-trace-formatting-support/12828/2 "2025-07-20T01:36:18Z")

</div>

Thanks! Was this ever implemented and released? If so, do you know what version started supporting it?
