Search in sources :

Example 1 with DeleteBreakpointRequest

use of org.eclipse.che.plugin.zdb.server.connection.ZendDbgClientMessages.DeleteBreakpointRequest in project che by eclipse.

the class ZendDebugger method handleReady.

private void handleReady(ReadyNotification notification) {
    String remoteFilePath = notification.getFileName();
    if (breakpointAflId != null && remoteFilePath.equals(debugStartFile)) {
        debugConnection.sendRequest(new DeleteBreakpointRequest(breakpointAflId));
        breakpointAflId = null;
    }
    int lineNumber = notification.getLineNumber();
    Location dbgLocation = ZendDbgLocationHandler.createDBG(remoteFilePath, lineNumber);
    // Convert DBG location from engine to VFS location
    Location vfsLocation = debugLocationHandler.convertToVFS(dbgLocation);
    // Send suspend event
    debugCallback.onEvent(new SuspendEventImpl(vfsLocation));
}
Also used : SuspendEventImpl(org.eclipse.che.api.debug.shared.model.impl.event.SuspendEventImpl) DeleteBreakpointRequest(org.eclipse.che.plugin.zdb.server.connection.ZendDbgClientMessages.DeleteBreakpointRequest) Breakpoint(org.eclipse.che.api.debug.shared.model.Breakpoint) Location(org.eclipse.che.api.debug.shared.model.Location)

Aggregations

Breakpoint (org.eclipse.che.api.debug.shared.model.Breakpoint)1 Location (org.eclipse.che.api.debug.shared.model.Location)1 SuspendEventImpl (org.eclipse.che.api.debug.shared.model.impl.event.SuspendEventImpl)1 DeleteBreakpointRequest (org.eclipse.che.plugin.zdb.server.connection.ZendDbgClientMessages.DeleteBreakpointRequest)1