Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [debugging]

The tag has no usage guidance.

0
votes
2answers
40 views

How can I log debug messages without blocking?

When debugging my vimrc, I often want to log informational messages, e.g. things like "skipping function X because a necessary plugin isn't available". I can use echom statements to do that, but they ...
0
votes
1answer
18 views

Debugging foldexpr function

I have debug=msg,throw in my .vimrc. When trying to debug a foldexpr function, the echom statements I use to print are ignored and are not accessible by :messages. Any way to make them work?
2
votes
1answer
57 views

How to find all scripts which modified a certain vim setting?

I can figure out which script changed a vim setting the last time with :verbose set errorformat? However, sometimes a setting is modified/appended several times and I want to see all scripts who ...
0
votes
0answers
30 views

How to get the same message and error behavior as normal `n` when calling `normal n` in function

I wrote a vimscript function that prevents the cursor from changing its location on the screen when I press n: function! my_n() let l:start=line("w0") let end = line("w$") let cursor = ...
2
votes
1answer
1k views

Python debugging

Is it possible to debug Python scripts line by line using :Termdebug? :help termdebug-customizing says, that you need a debugger that is "fully compatible with gdb". Is there a debugger for Python ...
0
votes
1answer
47 views

Vim slow to open buffers, but not specifically in any sourcing plugin step

I'm using Vim primarily for rails projects, and have found a fairly significant difference in the start up time between a couple of my projects. Here's one project's startuptime log, while opening a ...
1
vote
0answers
131 views

Specify GDB version for Termdebug

I am trying to use :Termdebug in Vim 8.1 on a CentOS machine. The default version of GDB at /usr/bin/gdb is less than the required v7.12. However, I have newer versions of GDB within devtoolset ...
0
votes
0answers
49 views

Cause of random hangs

Randomly, my nvim will hang. Generally, it seems to happen in command mode. The latest one has hung with: :set paste! paste? On the status line. I have map <F2> :set paste! paste?<CR> ...
4
votes
0answers
113 views

How can I watch variables when debugging Vimscript?

I would like to have another pane active when debugging a Vimscript function which would show the values of chosen local variables and function arguments dynamically. Currently I have to echo or let ...