[antlr-interest] Problems debugging large grammar in Visual Studio 2005
Johannes Luber
jaluber at gmx.de
Fri Jul 13 09:08:44 PDT 2007
troy runkel wrote:
> I'm using ANTLR v3 and the C target. I have a large grammar file
> (2500 lines) which builds into an even larger C parser file (107000
> lines). When debugging the generated parser in Visual Studio 2005, if
> I attempt to step into a function located in the bottom half of the
> file the debugger won't display the correct source location. This
> behavior is fairly consistent. I can step through/into functions in
> the top half of the file without problems. As soon as I step into a
> function in the bottom half of the file the debugger displays
> incorrect source information. I can debug at the assembly level, but
> that's a bit of a pain.
>
> I realize this is more of a compiler issue than an ANTLR issue, but
> before I attempt to navigate through the labyrinth of Microsoft
> technical support I thought I'd check here first. Has anybody seen
> this sort of behavior? Thanks.
>
> Troy Runkel
>
Why don't you split the file into more manageable pieces? It is some
additional work, but you have to do it only a few times till you
resolved the issue.
Best regards,
Johannes Luber
More information about the antlr-interest
mailing list