if (breakLine == -1) {
throw new SmokeException("Failed to find mark in script");
}
// Setting a breakpoint.
CallbackSemaphore callbackSemaphore = new CallbackSemaphore();
Breakpoint.Target breakpointTarget = new Breakpoint.Target.ScriptName(scriptOne.getName());
RelayOk relayOk = vm.setBreakpoint(breakpointTarget, breakLine, 0, true, null,
null, callbackSemaphore);
callbackSemaphore.acquireDefault(relayOk);
// First time just suspend on breakpoint and go on.
{
DebugContext context = stateManager.expectEvent(EXPECT_SUSPENDED_VISITOR);
context.continueVm(DebugContext.StepAction.CONTINUE, 0, null);