Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
path_mapping not working when using local vimrc #197
I've been using your plugin for a while already, without any issues. Thanks for that!!
But nowadays i'm trying to move all my development servers to a dockerized environmnent.
while another might have
In order to make it work, I introduced the plugin https://github.com/embear/vim-localvimrc which allows me to configure those things in a by project basis, just adding a .lvimrc file with that content in the corresponding project.
Now, the problem I'm facing, is that the path_map is not taken into account the first time I run de debugger. If I open vim, run the debugger, stop it and then set the breakpoint and start the debugger again, it works as intended. But if I just open vim, set the breakpoint and run the debugger, it doesn't work
You can see the logs in this gist: https://gist.github.com/Epilgrim/28a7eb010b8135d4e781
Explanation of the files:
vdebug.lvimrc.1.log: log using lvimrc. The breakpoint was not taken into account. Steps: open vim, set breakpoint, start vdebug (F5)
vdebug.lvimrc.2.log: log using lvimrc. The breakpoint was taken into account. Steps: open vim, start vdebug (F5), stop vdebug (ctrl+c), set breakpoint, start vdebug (F5)
Although basically everything works if I start and stop the debugger, it's a bit annoying sometimes. Do you have any clue what might be going on here?
Hi there, sorry for the delay. I think the issue is related to the options dictionary being loaded too late. Take a look at #113. There's a function that you can call in your vimrc/localrc that should load the options when vim starts.
Give that a go and see if it helps. Otherwise we'll try something else!
Sorry for the delay!
Sadly, that does not work.
I can see that the global variable is correctly updated, :let g:vdebug_options shows:
But still the debugger forces me to stop it and restarted before the mappings are recognized
My workaround is to have a function set the path_maps and run that before starting debug session. An additional benefit being that I can incorporate that with the vim-projectroot. e.g.
Does Vdebug generate some better events for
EDIT: Probably the best available option would be
but it doesn't work and I don't know why.