-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support vim unstack #34
base: develop
Are you sure you want to change the base?
Support vim unstack #34
Conversation
Ah the timer commit is also part of the pull request... Didn't think about that :( |
I can merge the timer commit as soon as you solve the eval problem - and then you can rebase this PR. This is not a problem. What is a problem is that the behavior(copying to the clipboard) is done in the debugger. This means:
The way it should be is:
Step 1 is already done in most debuggers, and step 2 will need to be repeated for each debugger, but steps 3 and 4 could be shared - as long as step 2 emits the stack frames in a common format. I suggest Vim's quickfix dictionary entries(see |
You are right, my solution is rather quick and dirty. Your suggestions how it could be done right are much better. I like the idea of avoiding the clipboard at all; currently the clipboard is flooded by stacktraces permanently. I will work on that when I have some more time; It seems as it could become some longer task. Is it possible to implement a new read handler (that is for the new think handler) in one debugger frontend first or do all debugger frontends need an empty read handler at least? |
Vebugger is designed to allow adding features to some debuggers without having to implement them(right away) in all the debuggers:
So, worst case - the new feature will not work for other debuggers until we implement the read handlers for them. |
fdae7d3
to
cd5f5cb
Compare
clipboard in a format that can be parsed by vim-unstack.
cd5f5cb
to
4370963
Compare
53be456
to
c598bb3
Compare
Wait what why? Are you completely bypassing Vebugger to send the stack trace to tmux? |
I just needed a quick solution to get stacktraces into the tmux paste buffer and pushed the code to synchronize it with multiple machines. This commit was actually not planed for this pull request... but GitHub of course updated the pull request automatically. Just ignore the last commit.... |
The LLDB frontend in now capable of copying the current stacktrace to clipboard in a format that is supported by vim-unstack. The feature can be activated by setting
On Linux, either xclip or xsel is needed for the copy operation.