title: Tips on debugging SWIG-wrapped C++ code in Eclipse?
body: <p>I have a large body of C++ code that I've wrapped with SWIG and am calling it from Java.  The C++ code makes liberal use of boost smart pointers.</p>
  
  <p>Some of my JUnit tests complete but then experience seg faults during cleanup.  The stack trace indicates a memory error in an object's finalization, but it's happening in the JNI code generated by SWIG and seems to be associated with the smart pointer reference counting.</p>
  
  <p>I would like to be able to step through all layers of the code.  Is this possible?  I would also be very happy to hear others' experiences with this sort of problem.</p>