Your environment
ruby -v: ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [arm64-darwin21]
rdbg -v: rdbg 1.5.0
Describe the bug
The DAP server does not use the parameters on the StackTrace request. In some instances this can result in a very large stack trace being returned, which can take extra time. VS code for example requests a depth of 20 at a time and has a 'more' button to retrieve additional data. Currently these are ignored, and the more button just resends the same data every time.
To Reproduce
Set a breakpoint in VS Code where the stack depth is > 20. VS Code will request 20 levels, but the dap server will ignore this and send the entire stack trace.
Expected behavior
Only send the requested levels.