How to debug a LEX/FLEX program on Linux

Viewed 2244

How can I debug a LEX/FLEX program on Linux? The code for compilation and running is following:

lex example.l
gcc lex.yy.c -lfl
./a.out
<Enter your input>

Does the -d token will debug LEX/FLEX? If yes, at which line do I need to include it in the code for compilation?

1 Answers
Related