Skip to content
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

debug ~/.vimrc #16

Open
albfan opened this issue Sep 5, 2015 · 0 comments
Open

debug ~/.vimrc #16

albfan opened this issue Sep 5, 2015 · 0 comments

Comments

@albfan
Copy link
Owner

albfan commented Sep 5, 2015

By now it's not possible because window is registered after ~/.vimrc execution

check it with

$ vim --startuptime -V9vim.log

then search for "~/.vimrc" and "register servername"

vimrc definition:
https://github.com/vim/vim/blob/fc53ec1e9aac682a8524698240ed2bb6f7b0e300/src/os_unix.h#L288

message about registering server:
https://github.com/vim/vim/blob/master/src/main.c#L3630

call to source scripts:
https://github.com/vim/vim/blob/master/src/main.c#L626
https://github.com/vim/vim/blob/master/src/main.c#L3021

call to register server:
https://github.com/vim/vim/blob/master/src/main.c#L801

"do_source" happens before "prepare_server", no way to use breakpts by now. It would be cool to propose a change in call order and test

$ vim --servername vimrcdebug -c "breakadd ~/.vimrc"

or

$ vim --servername vimrcdebug -D

then in another terminal

$ vim

:BreakPts
:BPRemote VIMRCDEBUG
:BPDWhere
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant