| Method from org.apache.bsf.debug.meta.JsCallbacksStub Detail: |
public void handleBreakpointHit(JsContext cx) throws RemoteException {
ResultCell cell;
try {
cell = m_con.prepareOutgoingInvoke(this,DebugConstants.JS_CALLBACKS_TID,DebugConstants.CB_HANDLE_BREAKPOINT_HIT);
cell.writeObject(cx);
cell.waitForCompletion();
} catch (IOException ex) {
throw new RemoteException("Marshalling error", ex);
} catch (Exception ex) {
throw new RemoteException("Error at server", ex);
}
}
Callback when a breakpoint is hit in the debuggee.
The debuggee is suspended until this call returns. |
public void handleEngineStopped(JsContext cx) throws RemoteException {
ResultCell cell;
try {
cell = m_con.prepareOutgoingInvoke(this,DebugConstants.JS_CALLBACKS_TID,DebugConstants.CB_HANDLE_ENGINE_STOPPED);
cell.writeObject(cx);
cell.waitForCompletion();
} catch (IOException ex) {
throw new RemoteException("Marshalling error", ex);
} catch (Exception ex) {
throw new RemoteException("Error at server", ex);
}
}
Callback when an engine stops after a stop-request.
The debuggee is suspended until this call returns. |
public void handleExceptionThrown(JsContext cx,
Object exception) throws RemoteException {
ResultCell cell;
try {
cell = m_con.prepareOutgoingInvoke(this,DebugConstants.JS_CALLBACKS_TID,DebugConstants.CB_HANDLE_EXCEPTION_THROWN);
cell.writeObject(cx);
cell.writeObject(exception);
cell.waitForCompletion();
} catch (IOException ex) {
throw new RemoteException("Marshalling error", ex);
} catch (Exception ex) {
throw new RemoteException("Error at server", ex);
}
}
Callback when an exception is thrown in the debuggee.
The debuggee is suspended until this call returns. |
public void handleSteppingDone(JsContext cx) throws RemoteException {
ResultCell cell;
try {
cell = m_con.prepareOutgoingInvoke(this,DebugConstants.JS_CALLBACKS_TID,DebugConstants.CB_HANDLE_STEPPING_DONE);
cell.writeObject(cx);
cell.waitForCompletion();
} catch (IOException ex) {
throw new RemoteException("Marshalling error", ex);
} catch (Exception ex) {
throw new RemoteException("Error at server", ex);
}
}
Callback when a step-request has finished.
The debuggee is suspended until this call returns. |
public boolean poll() throws RemoteException {
ResultCell cell;
try {
cell = m_con.prepareOutgoingInvoke(this,DebugConstants.JS_CALLBACKS_TID,DebugConstants.CB_POLL);
return cell.waitForBooleanValue();
} catch (IOException ex) {
throw new RemoteException("Marshalling error", ex);
} catch (Exception ex) {
throw new RemoteException("Error at server", ex);
}
}
Allows the server to poll the connection. |