title: How to debug a LEX/FLEX program on Linux
body: <p>How can I debug a LEX/FLEX program on Linux? The code for compilation and running is following:</p>
  
  <pre><code>lex example.l
  gcc lex.yy.c -lfl
  ./a.out
  &lt;Enter your input&gt;
  </code></pre>
  
  <p>Does the <code>-d</code> token will debug LEX/FLEX? If yes, at which line do I need to include it in the code for compilation?</p>