[prev in list] [next in list] [prev in thread] [next in thread]
List: vim-dev
Subject: Re: Vim7: breakadd here
From: Johnny Blaze <pyromancer () gmail ! com>
Date: 2005-01-28 3:04:11
Message-ID: 804f592d05012719044cc9092c () mail ! gmail ! com
[Download RAW message or body]
On Thu, 27 Jan 2005 22:51:41 +0100, Bram Moolenaar <Bram@moolenaar.net> wrote:
>
> Johnny Blaze wrote:
>
> > Consider the following:
> >
> > gvim
> > :e \vim\vim7\vimfiles\plugin\test.vim
> > :lcd \vim\vim7\vimfiles\plugin
> > <go to any line within a function>
> > :breakadd here
> > :breaklist
> > 1 file c:\vim\vim7\vimfiles\plugin\test.vim line <line>
> >
> > :so %
> > and it doesn't break, however instead of :breakadd here,
> >
> > :breakadd file <line> test.vim
> > :breaklist
> > 1 file c:\vim\vim7\vimfiles\plugin\test.vim line <line>
> > :so %
> > and it always works.
> >
> > (the path was just as an example. I tried the following test script:
> >
> > fun! Hi()
> > echo "hi"
> > endfun
> >
> > fun! Hello()
> > echo "hello"
> > endfun
> >
> > call Hi()
> > call Hello()
> >
> > :breakadd'ing on lines 2 and 6
>
> I just tried this, on MS-Windows XP to run into any problems with
> backslashes. It works just fine for me.
>
> After the "breakadd here" and sourcing the script Vim stops before "fun!
> Hello()". It doesn't stop halfway defining a function, that's normal.
>
> You didn't expect setting a breakpoint in a script file to work like a
> breakpoint in a function, did you?
>
> I can't think of something in the setup that would break it for you...
maybe I'm going crazy. I tested this last night on the sample script
I posted and it did as I said. Now it doesn't. I will develop a
better example, or check myself into the looney bin :-)
Thank you for your help Bram. Could you add a note in the help for
:breakadd that :breakadd file will trigger when the file is sourced,
and :breakadd func will trigger when it is called?
--
. o O pyromancer O o .
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic