I created a JFlex lexer based on idea-flex.skeleton for a small language. Before creating all the other classes needed to use it inside an IDEA plugin, I wanted to check whether the lexer as I defined it works. So I added the %debug option and run in on a sample file of that language. Unfortunately the only thing I see on the console is "null".
After looking through the generated code, I now think that debugging cannot work. The lexer itself doesn't read the file. The only way the buffer is set is through the two reset methods that aren't called from the created main method.
Does anyone have an IDEA ;) how to make this work? Or is the only way out to temporarily disable the IDEA-specific skeleton, work on the lexer till it produces satisfying results and then to enable the skeleton again?