forked from vim-scripts/BreakPts
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels