*/
public void startCommunication() throws MethodIsBlockingException {
V8BlockingCallback<Void> callback = new V8BlockingCallback<Void>() {
@Override
public Void messageReceived(CommandResponse response) {
SuccessCommandResponse successResponse = response.asSuccess();
if (successResponse == null) {
return null;
}
Version vmVersion = V8ProtocolUtil.parseVersionResponse(successResponse);
DebugSession.this.vmVersion = vmVersion;
if (V8VersionFeatures.isRunningAccurate(vmVersion)) {
Boolean running = successResponse.running();
if (running == Boolean.FALSE) {
ContextBuilder.ExpectingBreakEventStep step1 = contextBuilder.buildNewContextWhenIdle();
// If step is not null -- we are already in process of building a context.
if (step1 != null) {
ContextBuilder.ExpectingBacktraceStep step2 =