Pages

Wednesday, November 16, 2011

ANTLR warning "Multiple token rules can match input such as "Xa, Xi, Xe ", Tokens Xi, Xe were disabled for that input"

Have you come across the following warning when you build ANTLR grammer files?


This is due to a failure in NFA > DFA conversion. Creating DFA for the parser is not performed as expected. For NFA conversion, the default time-out value is set to 1000. You need to increase this value to fix the above issue using the following statement when you are building the grammer.

-Xconversiontimeout t (t standas for time-out value)

Monday, November 14, 2011

How to troubleshoot "The breakpoint will not currently be hit. No symbols have been loaded for this document." issue when debugging?

If you are a Visual Studio developer, I'm sure you might have got this error atleast onece in your life. And I would call this as the "Most frustrating issue that can happen to any developer"

Because, you need to troubleshoot this may be for few days just to get a single breakpoint enabled.

As far as I know there is no clear cut solution for this issue. So, first try the following:
First Clean the solution ( Build > Clean Solution)
If it does not work, delete Bin and Obj folders and Build
Still no luck? Restart the Visual Stidio IDE

If non of these options work for you, go to Debug > Windows > Modules. It will show you the path which the symbols are loaded. You can check the symbol status there.