use of com.oracle.truffle.tools.chromeinspector.domains.DebuggerDomain in project graal by oracle.
the class WebSocketServer method openWebSocket.
@Override
protected NanoWSD.WebSocket openWebSocket(NanoHTTPD.IHTTPSession handshake) {
String descriptor = handshake.getUri();
TruffleExecutionContext context = SESSIONS.get(descriptor);
if (log != null) {
log.println("CLIENT ws connection opened, resource = " + descriptor + ", context = " + context);
log.flush();
}
if (context != null) {
boolean debugBreak = DEBUG_BRK.get(descriptor);
RuntimeDomain runtime = new TruffleRuntime(context);
DebuggerDomain debugger = new TruffleDebugger(context, debugBreak);
ProfilerDomain profiler = new TruffleProfiler(context);
InspectServerSession iss = new InspectServerSession(runtime, debugger, profiler, context);
return new InspectWebSocket(handshake, iss, log);
} else {
return new ClosedWebSocket(handshake);
}
}
Aggregations