I'm trying to develop a package that can store the stack information when an error occurs, and allow users to debug their code using the stored variables afterward. A nice feature I can think of is enabling the Rstudio debugger during the debug process. I wonder if there is any way to modify the Rstudio debugger traceback using the stored stack I have? So users can use Rstudio debugger without really having to run every nested function again to obtain a real stack. What I want to control is the trackback pane as shown in the figure below. Thank!