// FIXME - in the even of internal exceptions, JDWP writes to System.out.
final String ps = "transport=dt_socket,suspend=n,address=" + port + ",server=y";
Thread t = new Thread(new Runnable() {
public void run() {
while (up()) {
Jdwp jdwp = new Jdwp();
jdwp.configure(ps);
jdwp.run();
jdwp.waitToFinish();
jdwp.shutdown();
}
// workaround for the restricted capabilities of JDWP support in GNU Classpath.
JNodeSocketTransport.ServerSocketHolder.close();
}
});