vadimcn / codelldb

A native debugger extension for VSCode based on LLDB
https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb
MIT License
2.43k stars 237 forks source link

Add search and filter capability to the Call Stack view #941

Closed hriekehof closed 1 year ago

hriekehof commented 1 year ago

I have a bigger project which runs around 100 threads when started in the debugger. At the moment i can hit Ctrl + F in the Call Stack view and a small search window appears. This search only works on the text which is visible in the panel. To search everywhere i need to expand all threads to be able to search through all function calls in the stack frames.

It would be great if i could do a textual search in all stack frames directly without expanding all threads. Maybe this is also a VS code feature request but it would help me alot.

vadimcn commented 1 year ago

IMO, this should be a VSCode feature request. Although I don't think they'll implement this: in order to keep UI responsive, VSCode initially requests only the top 20 frames from debug adapters, loading the rest on-demand; so they simply don't have this information.

Depending on what you want to to do once you find the right stack frame, you might be able to do it by writing a script using LLDB API, that searches callstacks of all threads in the current process.