Is there a way to customize how dap-view shows a stack trace element when hitting enter on a stack trace line in the Threads view? #127
Replies: 3 comments 3 replies
-
Yes! Check the FAQ The TLDR is that you can use nvim-dap-view's
The default behavior is to:
I think that what you're describing might be neovim switching tabs (i.e., behavior 1). This can be specially confusing if you're using a "buffer line" plugin. If that's the case, you have some options:
Just to reiterate: are you sure these windows are not in different tabs?
Luckily, you can! In addition to the "bare" variants of
Let me know if there are improvements to be made to the docs. If you're feeling like it, you can send a PR! As you can imagine, you're not the first one to get confused by |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for your help and sorry again I missed this in the documentation. I fixed it by using this setting: { From the source code it seems the default is 'usetab,uselast'. 'usetab' sohuld be the same as useopen though so I think there must be a bug in the usetab implementation. Because putting useopen before it shouldn't change anything as usetab should behave the same as useopen and then only consider other tabs (which I have none) if that fails. |
Beta Was this translation helpful? Give feedback.
-
|
Actually I thought changing it that way fixed it but it seems it did not. I still get splits all the time. I guess there is a bug in the code and I'll see if I can track it down. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When I set a breakpoint that gets hit and then I go to the Threads tab and see my stack trace I often want to navigate up and down the stack trace and see what is going on. When I press enter on a particular line it is opened in a new window if it's not the current file. If I have a stack trace that spans 10 different files and I navigate up and down I end up with 10 split windows and it's very confusing. I would like that it just opens the location in the current window I'm using for editing my source code. I would like to be in charge when splits are created or not. Is there a setting for this? I couldn't find anything on the documentation about this and not sure if it's a bug, missing feature or I'm just missing something.
Otherwise this is really great!
Beta Was this translation helpful? Give feedback.
All reactions