question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't set g:vdebug_options from .vimrc

See original GitHub issue

Non-vim programmers might put this in their vimrc:

let g:vdebug_options['port']=10000

But they’d get this from vim:

Error detected while processing /home/gbell2/.vimrc:
line  255:
E121: Undefined variable: g:vdebug_options

Solution is to create the dict before it’s used: let g:vdebug_options={} let g:vdebug_options['port']=10000

It would be good to have a note about that in section 5.2 of the docs.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:5
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Taluucommented, May 5, 2015

I’m currently using this to get by this problem ;

if !exists('g:vdebug_options')
    let g:vdebug_options = {}
endif

" let g:vdebug_options["break_on_open"] = 0
let g:vdebug_options["watch_window_height"]=45
let g:vdebug_options["status_window_height"]=5
" let g:vdebug_options["continuous_mode"]=1
0reactions
BlackIkeEaglecommented, Feb 19, 2018

@lucc that was indeed sufficient

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I debug my vimrc file? - Vi and Vim Stack Exchange
The first thing you want to do is to start Vim with the default settings: vim -u NONE -U NONE -N. The -u...
Read more >
Debug unexpected option settings - Vim Tips Wiki - Fandom
If you are running a GUI version, debugging only starts after the GUI is up. Put a gui command in your . vimrc...
Read more >
Debugging your Vim Config - Vimways
If all plugin-specific config is behind load guards, it's really easy to disable any set of plugins to help narrow down the cause...
Read more >
how to debug vim config (.vimrc) - Stack Overflow
set cpoptions? shows the '$' option isn't set. if I type :set cpoptions+=$ manually in vim everything works fine. I suspect during the...
Read more >
Debugging Vim - In Lehman's Terms
You can start up Vim in its debug mode with the -D argument. ... This is useful for seeing what is run when...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found