Clarifications on kdevelop-pg-qt

Andreas Pakulat apaku at gmx.de
Tue May 18 07:32:47 UTC 2010


On 17.05.10 19:20:34, Victor Vicente de Carvalho wrote:
> 2010/5/17 Jonathan Schmidt-Dominé - Developer <devel at the-user.org>
> 
> > Hi!
> >
> > > Since kdevelop-pg-qt migration to git a strange behavior was happening
> > when
> > > I'm debugging parser-generated files. After some digging I've found that
> > on
> > > erlangparser.cpp this definition (what is this anyway?) is appearing now:
> > >
> > > # 567 "/home/victor/kdev-extra/erlang/parser/erlang.g"
> > >
> > > this line is making the debugger point to erlang.g when it should point
> > to
> > > erlangparser.cpp
> > No, I have commited it before the git-migration. :D
> >
> > > How do I disable this?
> > Yes, apaku is right, --beautiful-code, it will certainly look more
> > beautiful.
> > But I think that this "strange" behaviour is often useful. But I think it
> > would be better if not all references are pointing to the .g-file, will try
> > to
> > fix it. Maybe it will be useful for you, too. ;)
> >
> > Sorry, but I couldn't understand what exactly this do besides redirecting
> all debugging from parser to the grammar file?

Exactly, you don't have to try to lookup which generated c++ code
corresponds to which grammar rule. Its directly visible.

> Could you clarify that? Oh, and there is some way to remove this when
> generating files?

As I said, run the generator with --beautiful-code.

Andreas

-- 
Reply hazy, ask again later.




More information about the KDevelop-devel mailing list