title: Line number info not available error while debugging Ant project in IntelliJ
body: <p>I am working with a fairly old Java Ant project, which I have imported into IntelliJ, it previously having been developed using Eclipse.  The project consists of a small number of servlets.  I am trying to debug from IntelliJ.  IntelliJ can connect to remote Tomcat on port 8000, but when I try to add a breakpoint I get the following dreaded error:</p>
  
  <blockquote>
    <p>Line numbers info is not available in class com.package.blah.SomeClass</p>
  </blockquote>
  
  <p>Following advice on SO and elsewhere, I modified my Ant build script to the following:</p>
  
  <pre><code>&lt;target name="compile" depends="web-skeleton"&gt;
      &lt;ant dir="${deployment-wizard.dir}" target="uberjar"/&gt;
      &lt;javac debug="true" debuglevel="lines,vars,source" srcdir="${src.dir}"
          destdir="${build.dir}/WEB-INF/classes" classpathref="project.class.path"/&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>I added the <code>debug</code> and <code>debuglevel</code> lines to the above target which calls <code>javac</code>.  Also, I have tried running <code>javap -v SomeClass.class</code>, where I see things like the following:</p>
  
  <pre><code>  line 94: 418
    line 97: 433
    line 98: 443
  LocalVariableTable:
    Start  Length  Slot  Name   Signature
      343      22    13 decrypted   Ljava/lang/String;
      370      11    13     e   Ljava/lang/Exception;
      244     189     7 keyParam   Ljava/lang/String;
      255     178     8 userParam   Ljava/lang/String;
      266     167     9 environmentParam   Ljava/lang/String;
  </code></pre>
  
  <p>I don't know if this means that the bytecode contains line numbers, but it certainly appears this way.</p>
  
  <p>I have also tried cleaning and rebuilding from scratch and doing an invalidate caches/restart from IntelliJ.</p>
  
  <p>I hope that someone can offer some help here.  As a last resort, I can try porting it to a Maven project, but I would prefer to avoid this unless absolutely necessary.</p>