Search in sources :

Example 11 with WorkerExecutionContext

use of org.ballerinalang.bre.bvm.WorkerExecutionContext in project ballerina by ballerina-lang.

the class BLangFunctions method invokeVMUtilFunction.

public static void invokeVMUtilFunction(FunctionInfo initFuncInfo) {
    WorkerExecutionContext context = new WorkerExecutionContext(initFuncInfo.getPackageInfo().getProgramFile());
    invokeVMUtilFunction(initFuncInfo, context);
}
Also used : WorkerExecutionContext(org.ballerinalang.bre.bvm.WorkerExecutionContext)

Example 12 with WorkerExecutionContext

use of org.ballerinalang.bre.bvm.WorkerExecutionContext in project ballerina by ballerina-lang.

the class Debugger method stepOver.

/**
 * Method to do "STEP_OVER" command.
 *
 * @param workerId to be resumed.
 */
public void stepOver(String workerId) {
    WorkerExecutionContext ctx = getWorkerContext(workerId);
    ctx.getDebugContext().setCurrentCommand(DebugCommand.STEP_OVER);
    BLangScheduler.resume(ctx);
}
Also used : WorkerExecutionContext(org.ballerinalang.bre.bvm.WorkerExecutionContext)

Example 13 with WorkerExecutionContext

use of org.ballerinalang.bre.bvm.WorkerExecutionContext in project ballerina by ballerina-lang.

the class Debugger method stepIn.

/**
 * Method to do "STEP_IN" command.
 *
 * @param workerId to be resumed.
 */
public void stepIn(String workerId) {
    WorkerExecutionContext ctx = getWorkerContext(workerId);
    ctx.getDebugContext().setCurrentCommand(DebugCommand.STEP_IN);
    BLangScheduler.resume(ctx);
}
Also used : WorkerExecutionContext(org.ballerinalang.bre.bvm.WorkerExecutionContext)

Example 14 with WorkerExecutionContext

use of org.ballerinalang.bre.bvm.WorkerExecutionContext in project ballerina by ballerina-lang.

the class Debugger method stepOut.

/**
 * Method to do "STEP_OUT" command.
 *
 * @param workerId to be resumed.
 */
public void stepOut(String workerId) {
    WorkerExecutionContext ctx = getWorkerContext(workerId);
    ctx.getDebugContext().setCurrentCommand(DebugCommand.STEP_OUT);
    BLangScheduler.resume(ctx);
}
Also used : WorkerExecutionContext(org.ballerinalang.bre.bvm.WorkerExecutionContext)

Example 15 with WorkerExecutionContext

use of org.ballerinalang.bre.bvm.WorkerExecutionContext in project ballerina by ballerina-lang.

the class Debugger method resume.

/**
 * Method to resume current debug session.
 *
 * @param workerId of the worker to be resumed.
 */
public void resume(String workerId) {
    WorkerExecutionContext ctx = getWorkerContext(workerId);
    ctx.getDebugContext().setCurrentCommand(DebugCommand.RESUME);
    BLangScheduler.resume(ctx);
}
Also used : WorkerExecutionContext(org.ballerinalang.bre.bvm.WorkerExecutionContext)

Aggregations

WorkerExecutionContext (org.ballerinalang.bre.bvm.WorkerExecutionContext)19 WorkerData (org.ballerinalang.bre.bvm.WorkerData)7 AsyncInvocableWorkerResponseContext (org.ballerinalang.bre.bvm.AsyncInvocableWorkerResponseContext)3 CallableWorkerResponseContext (org.ballerinalang.bre.bvm.CallableWorkerResponseContext)3 InitWorkerResponseContext (org.ballerinalang.bre.bvm.InitWorkerResponseContext)3 SyncCallableWorkerResponseContext (org.ballerinalang.bre.bvm.SyncCallableWorkerResponseContext)3 Context (org.ballerinalang.bre.Context)2 NativeCallContext (org.ballerinalang.bre.NativeCallContext)2 ForkJoinWorkerResponseContext (org.ballerinalang.bre.bvm.ForkJoinWorkerResponseContext)2 WorkerResponseContext (org.ballerinalang.bre.bvm.WorkerResponseContext)2 NativeCallableUnit (org.ballerinalang.model.NativeCallableUnit)2 BCallableFuture (org.ballerinalang.model.values.BCallableFuture)2 WorkerSet (org.ballerinalang.util.codegen.CallableUnitInfo.WorkerSet)2 CodeAttributeInfo (org.ballerinalang.util.codegen.attributes.CodeAttributeInfo)2 Debugger (org.ballerinalang.util.debugger.Debugger)2 BLangRuntimeException (org.ballerinalang.util.exceptions.BLangRuntimeException)2 ArrayList (java.util.ArrayList)1 BLangCallableUnitCallback (org.ballerinalang.bre.BLangCallableUnitCallback)1 CallableUnitCallback (org.ballerinalang.bre.bvm.CallableUnitCallback)1 BallerinaConnectorException (org.ballerinalang.connector.api.BallerinaConnectorException)1