int port = configuration.getAttribute("teavm-debugger-port", 2357);
final ChromeRDPServer server = new ChromeRDPServer();
server.setPort(port);
ChromeRDPDebugger jsDebugger = new ChromeRDPDebugger();
server.setExchangeConsumer(jsDebugger);
Debugger debugger = new Debugger(jsDebugger, new URLDebugInformationProvider(""));
new Thread() {
@Override public void run() {
server.start();
}
}.start();