Improvements of netbeans debug logging

3 views
Skip to first unread message

Philippe Fremy

unread,
Jun 6, 2008, 3:31:52 AM6/6/08
to vim...@googlegroups.com

Hi,

I propose the following patch for the nebeans interface.

It does:

- add nbdebug statement for every error that might occur during the use
of netbeans. Some annoying stuff was not logged, like a command not
recognised by netbeans, or error only reported to the gui.

- put more meaningful messages when a command applies on a netbeans
buffer that is not found. Message was "null bufp in XXX". Now, it is
"invalid buffer identifier in XXX".

- allows netbeans stuff to compile when macro NBDEBUG is set. In current
vim state, it simply does not compile.

The patch was very helpful for me when debugging netbeans interactions.

Note that all the nbdebug() statements are compiled out if NBDEBUG macro
is not set (and by default, it is not set). So, it does not change
anything to regular vim.


cheers,

Philippe

netbeans_nbdebug.patch

Philippe Fremy

unread,
Jun 18, 2008, 2:33:24 AM6/18/08
to vim...@googlegroups.com, Br...@moolenaar.net

Hi Bram,

What is the status of this patch ? Are you going to include it in gvim ?
As I said, it enteriely compiles out if you are not defining DEBUG or
NBDEBUG. But if you are, it's very useful to develop with the netbeans
interface.

cheers,

Philippe

Bram Moolenaar

unread,
Jun 18, 2008, 3:11:34 PM6/18/08
to Philippe Fremy, vim...@googlegroups.com

Philippe Fremy wrote:

> Hi Bram,
>
> What is the status of this patch ? Are you going to include it in gvim ?
> As I said, it enteriely compiles out if you are not defining DEBUG or
> NBDEBUG. But if you are, it's very useful to develop with the netbeans
> interface.

It's in the todo list at line 116. That is at 1%, so that's not bad
:-).

>
> cheers,
>
> Philippe
>
> Philippe Fremy wrote:
> > Hi,
> >
> > I propose the following patch for the nebeans interface.
> >
> > It does:
> >
> > - add nbdebug statement for every error that might occur during the use
> > of netbeans. Some annoying stuff was not logged, like a command not
> > recognised by netbeans, or error only reported to the gui.
> >
> > - put more meaningful messages when a command applies on a netbeans
> > buffer that is not found. Message was "null bufp in XXX". Now, it is
> > "invalid buffer identifier in XXX".
> >
> > - allows netbeans stuff to compile when macro NBDEBUG is set. In current
> > vim state, it simply does not compile.
> >
> > The patch was very helpful for me when debugging netbeans interactions.
> >
> > Note that all the nbdebug() statements are compiled out if NBDEBUG macro
> > is not set (and by default, it is not set). So, it does not change
> > anything to regular vim.
> >
> >
> > cheers,
> >
> > Philippe

--
Despite the cost of living, have you noticed how it remains so popular?

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

Philippe Fremy

unread,
Jun 20, 2008, 4:47:55 AM6/20/08
to vim...@googlegroups.com

Hi Bram,

As long as it is on your todo list, I am happy.

Philippe

Reply all
Reply to author
Forward
0 new messages