Search in sources :

Example 16 with Breakpoints

use of com.google.api.services.clouddebugger.v2.Clouddebugger.Debugger.Debuggees.Breakpoints in project google-cloud-intellij by GoogleCloudPlatform.

the class CloudDebuggerClientTest method testGetShortTimeoutClient_fromUserEmail.

@Test
public void testGetShortTimeoutClient_fromUserEmail() {
    Debugger client = CloudDebuggerClient.getShortTimeoutClient("foo@example.com");
    Assert.assertNotNull(client.debuggees().breakpoints());
}
Also used : Debugger(com.google.api.services.clouddebugger.v2.Clouddebugger.Debugger) Test(org.junit.Test)

Example 17 with Breakpoints

use of com.google.api.services.clouddebugger.v2.Clouddebugger.Debugger.Debuggees.Breakpoints in project google-cloud-intellij by GoogleCloudPlatform.

the class CloudDebugHistoricalSnapshots method fireDeleteBreakpoints.

/**
 * Deletes breakpoints asynchronously on a threadpool thread. The user will see these breakpoints
 * gradually disappear.
 */
private void fireDeleteBreakpoints(@NotNull final List<Breakpoint> breakpointsToDelete) {
    for (Breakpoint breakpoint : breakpointsToDelete) {
        getModel().markForDelete(breakpoint.getId());
        process.getBreakpointHandler().deleteBreakpoint(breakpoint);
    }
    getModel().fireTableDataChanged();
}
Also used : Breakpoint(com.google.api.services.clouddebugger.v2.model.Breakpoint)

Aggregations

Breakpoint (com.google.api.services.clouddebugger.v2.model.Breakpoint)13 Debugger (com.google.api.services.clouddebugger.v2.Clouddebugger.Debugger)9 IOException (java.io.IOException)5 CloudLineBreakpoint (com.google.cloud.tools.intellij.debugger.CloudLineBreakpointType.CloudLineBreakpoint)4 XLineBreakpoint (com.intellij.xdebugger.breakpoints.XLineBreakpoint)4 ArrayList (java.util.ArrayList)4 ListBreakpointsResponse (com.google.api.services.clouddebugger.v2.model.ListBreakpointsResponse)3 SourceLocation (com.google.api.services.clouddebugger.v2.model.SourceLocation)3 PluginInfoService (com.google.cloud.tools.intellij.service.PluginInfoService)3 Project (com.intellij.openapi.project.Project)3 VirtualFile (com.intellij.openapi.vfs.VirtualFile)3 XBreakpoint (com.intellij.xdebugger.breakpoints.XBreakpoint)3 XBreakpointManager (com.intellij.xdebugger.breakpoints.XBreakpointManager)3 GoogleJsonResponseException (com.google.api.client.googleapis.json.GoogleJsonResponseException)2 Debuggees (com.google.api.services.clouddebugger.v2.Clouddebugger.Debugger.Debuggees)2 Breakpoints (com.google.api.services.clouddebugger.v2.Clouddebugger.Debugger.Debuggees.Breakpoints)2 SocketTimeoutException (java.net.SocketTimeoutException)2 Test (org.junit.Test)2 GetBreakpointResponse (com.google.api.services.clouddebugger.v2.model.GetBreakpointResponse)1 SetBreakpointResponse (com.google.api.services.clouddebugger.v2.model.SetBreakpointResponse)1