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);
}
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);
}
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);
}
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);
}
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);
}
Aggregations