title: How to debug a Java Process started by ProcessBuilder
body: <p>There are two Java files. One is A, and the other is B. Both A and B have main functions. Then I run A, and in A, I start a Process of B through ProcessBuilder.start().</p>
  
  <p>I can debug the code of A. However, I cannot debug B. Even when I add breakpoint in B's main function, Eclipse does not stop at that line of B. So far the only method that I can think of is to simulate the parameters in A, and call B's main function directly. But it's not quite convenient. Is there any simple &amp; direct way?</p>
  
  <p>Thanks in advance for any suggestions.</p>