odeke-em / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

":breakadd func" on empty function breaks on any subsequent vimscript #338

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Define an empty "Foo" function in vimscript (":func Foo()", ":endfunction")
2. Execute ":breakadd func Foo"
3. Execute ":call Foo()"

What is the expected output? What do you see instead?
The interpreter should break inside the empty function, on the "endfunction" 
line or something. Instead, ":call Foo()" doesn't trigger the breakpoint at 
all, but it breaks later when some other vimscript executes.

What version of the product are you using? On what operating system?
vim 7.4.622 on Ubuntu Linux 14.04

Original issue reported on code.google.com by dbarn...@google.com on 12 Mar 2015 at 6:04

GoogleCodeExporter commented 9 years ago
Incidentally, the existing behavior is actually pretty useful, and I'd suggest 
adding a ":breakadd next" to break on next vimscript execution.

Original comment by dbarn...@google.com on 12 Mar 2015 at 6:06