title: How do I debug Java code running inside a JVM hosted by my C++ application?
body: <p>I have a C++ application that uses the Java Native Interface and creates a JVM in order to execute Java code. How can I debug this Java code while it is being executed within my C++ application? I have all the relevant Java source code, and I'd like to set breakpoints and watch object data within Eclipse.</p>
  
  <p>I've heard of <code>JDPA</code> and <code>JDWP</code> as tools to accomplish this, but I have no idea about the specific steps. Is there a tutorial for this kind of debugging situation?</p>