title: How to debug Java agents (two headed beast approach)
body: <p>Since Notes/Domino version 7 I have used the principles in Bob Balaban's "Two headed beast" (http://bobzblog.com/tuxedoguy.nsf/dx/the-2-headed-beast-debugging-domino-java-agents-with-eclipse) for writing Java agents in Eclipse that can be debugged! This works like a charm - the only thing is that I have had to copy/paste the code from Eclipse to the standard Notes agent.</p>
  
  <p>With the current Eclipse version (8.5.3 FP2) of Domino Designer I tried to see if I could use the same setup to debug agents directly (as Java programs) in Domino Designer. It seems that I can make the code run, however, I cannot make it stop at any breakpoints. The message I get is: </p>
  
  <blockquote>
    <p>Unable to install breakpoint in dk.domain.AgentTemplate due to missing line number attributes. Modify the compiler options to generate line number attributes.</p>
  </blockquote>
  
  <p>I have tried to set the debug configuration to "Stop in main". And it does seem to stop. However, if I step over, it runs all of the code - and I cannot see where in the code I am, and of course I cannot see the variables nor their values.</p>
  
  <p>The option in Preferences - Java - Compiler to "Add line number attributes to generated class files" has been selected. I have not found other compiler option to generate line numbers.</p>
  
  <p>I am using Java 1.5 compliance in Designer.</p>
  
  <p>Has anyone been able to set this up??</p>
  
  <p>/John</p>