Class Debugger2Client (3.0.0)

public abstract class Debugger2Client

Debugger2 client wrapper, for convenient use.

Inheritance

Object > Debugger2Client

Derived Types

Namespace

Google.Cloud.Debugger.V2

Assembly

Google.Cloud.Debugger.V2.dll

Remarks

The Debugger service provides the API that allows users to collect run-time information from a running application, without stopping or slowing it down and without modifying its state. An application may include one or more replicated processes performing the same work.

A debugged application is represented using the Debuggee concept. The Debugger service provides a way to query for available debuggees, but does not provide a way to create one. A debuggee is created using the Controller service, usually by running a debugger agent with the application.

The Debugger service enables the client to set one or more Breakpoints on a Debuggee and collect the results of the set Breakpoints.

Properties

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the Debugger2 service, which is a host of "clouddebugger.googleapis.com" and a port of 443.

Property Value
TypeDescription
String

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default Debugger2 scopes.

Property Value
TypeDescription
IReadOnlyList<String>
Remarks

GrpcClient

public virtual Debugger2.Debugger2Client GrpcClient { get; }

The underlying gRPC Debugger2 client

Property Value
TypeDescription
Debugger2.Debugger2Client

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
TypeDescription
ServiceMetadata

Methods

Create()

public static Debugger2Client Create()

Synchronously creates a Debugger2Client using the default credentials, endpoint and settings. To specify custom credentials or other settings, use Debugger2ClientBuilder.

Returns
TypeDescription
Debugger2Client

The created Debugger2Client.

CreateAsync(CancellationToken)

public static Task<Debugger2Client> CreateAsync(CancellationToken cancellationToken = default(CancellationToken))

Asynchronously creates a Debugger2Client using the default credentials, endpoint and settings. To specify custom credentials or other settings, use Debugger2ClientBuilder.

Parameter
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
Task<Debugger2Client>

The task representing the created Debugger2Client.

DeleteBreakpoint(DeleteBreakpointRequest, CallSettings)

public virtual void DeleteBreakpoint(DeleteBreakpointRequest request, CallSettings callSettings = null)

Deletes the breakpoint from the debuggee.

Parameters
NameDescription
requestDeleteBreakpointRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
Debugger2Client debugger2Client = Debugger2Client.Create();
// Initialize request argument(s)
DeleteBreakpointRequest request = new DeleteBreakpointRequest
{
    DebuggeeId = "",
    BreakpointId = "",
    ClientVersion = "",
};
// Make the request
debugger2Client.DeleteBreakpoint(request);

DeleteBreakpoint(String, String, String, CallSettings)

public virtual void DeleteBreakpoint(string debuggeeId, string breakpointId, string clientVersion, CallSettings callSettings = null)

Deletes the breakpoint from the debuggee.

Parameters
NameDescription
debuggeeIdString

Required. ID of the debuggee whose breakpoint to delete.

breakpointIdString

Required. ID of the breakpoint to delete.

clientVersionString

Required. The client version making the call. Schema: domain/type/version (e.g., google.com/intellij/v1).

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
Debugger2Client debugger2Client = Debugger2Client.Create();
// Initialize request argument(s)
string debuggeeId = "";
string breakpointId = "";
string clientVersion = "";
// Make the request
debugger2Client.DeleteBreakpoint(debuggeeId, breakpointId, clientVersion);

DeleteBreakpointAsync(DeleteBreakpointRequest, CallSettings)

public virtual Task DeleteBreakpointAsync(DeleteBreakpointRequest request, CallSettings callSettings = null)

Deletes the breakpoint from the debuggee.

Parameters
NameDescription
requestDeleteBreakpointRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
Debugger2Client debugger2Client = await Debugger2Client.CreateAsync();
// Initialize request argument(s)
DeleteBreakpointRequest request = new DeleteBreakpointRequest
{
    DebuggeeId = "",
    BreakpointId = "",
    ClientVersion = "",
};
// Make the request
await debugger2Client.DeleteBreakpointAsync(request);

DeleteBreakpointAsync(DeleteBreakpointRequest, CancellationToken)

public virtual Task DeleteBreakpointAsync(DeleteBreakpointRequest request, CancellationToken cancellationToken)

Deletes the breakpoint from the debuggee.

Parameters
NameDescription
requestDeleteBreakpointRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
Debugger2Client debugger2Client = await Debugger2Client.CreateAsync();
// Initialize request argument(s)
DeleteBreakpointRequest request = new DeleteBreakpointRequest
{
    DebuggeeId = "",
    BreakpointId = "",
    ClientVersion = "",
};
// Make the request
await debugger2Client.DeleteBreakpointAsync(request);

DeleteBreakpointAsync(String, String, String, CallSettings)

public virtual Task DeleteBreakpointAsync(string debuggeeId, string breakpointId, string clientVersion, CallSettings callSettings = null)

Deletes the breakpoint from the debuggee.

Parameters
NameDescription
debuggeeIdString

Required. ID of the debuggee whose breakpoint to delete.

breakpointIdString

Required. ID of the breakpoint to delete.

clientVersionString

Required. The client version making the call. Schema: domain/type/version (e.g., google.com/intellij/v1).

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
Debugger2Client debugger2Client = await Debugger2Client.CreateAsync();
// Initialize request argument(s)
string debuggeeId = "";
string breakpointId = "";
string clientVersion = "";
// Make the request
await debugger2Client.DeleteBreakpointAsync(debuggeeId, breakpointId, clientVersion);

DeleteBreakpointAsync(String, String, String, CancellationToken)

public virtual Task DeleteBreakpointAsync(string debuggeeId, string breakpointId, string clientVersion, CancellationToken cancellationToken)

Deletes the breakpoint from the debuggee.

Parameters
NameDescription
debuggeeIdString

Required. ID of the debuggee whose breakpoint to delete.

breakpointIdString

Required. ID of the breakpoint to delete.

clientVersionString

Required. The client version making the call. Schema: domain/type/version (e.g., google.com/intellij/v1).

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
Debugger2Client debugger2Client = await Debugger2Client.CreateAsync();
// Initialize request argument(s)
string debuggeeId = "";
string breakpointId = "";
string clientVersion = "";
// Make the request
await debugger2Client.DeleteBreakpointAsync(debuggeeId, breakpointId, clientVersion);

GetBreakpoint(GetBreakpointRequest, CallSettings)

public virtual GetBreakpointResponse GetBreakpoint(GetBreakpointRequest request, CallSettings callSettings = null)

Gets breakpoint information.

Parameters
NameDescription
requestGetBreakpointRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
GetBreakpointResponse

The RPC response.

Example
// Create client
Debugger2Client debugger2Client = Debugger2Client.Create();
// Initialize request argument(s)
GetBreakpointRequest request = new GetBreakpointRequest
{
    DebuggeeId = "",
    BreakpointId = "",
    ClientVersion = "",
};
// Make the request
GetBreakpointResponse response = debugger2Client.GetBreakpoint(request);

GetBreakpoint(String, String, String, CallSettings)

public virtual GetBreakpointResponse GetBreakpoint(string debuggeeId, string breakpointId, string clientVersion, CallSettings callSettings = null)

Gets breakpoint information.

Parameters
NameDescription
debuggeeIdString

Required. ID of the debuggee whose breakpoint to get.

breakpointIdString

Required. ID of the breakpoint to get.

clientVersionString

Required. The client version making the call. Schema: domain/type/version (e.g., google.com/intellij/v1).

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
GetBreakpointResponse

The RPC response.

Example
// Create client
Debugger2Client debugger2Client = Debugger2Client.Create();
// Initialize request argument(s)
string debuggeeId = "";
string breakpointId = "";
string clientVersion = "";
// Make the request
GetBreakpointResponse response = debugger2Client.GetBreakpoint(debuggeeId, breakpointId, clientVersion);

GetBreakpointAsync(GetBreakpointRequest, CallSettings)

public virtual Task<GetBreakpointResponse> GetBreakpointAsync(GetBreakpointRequest request, CallSettings callSettings = null)

Gets breakpoint information.

Parameters
NameDescription
requestGetBreakpointRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<GetBreakpointResponse>

A Task containing the RPC response.

Example
// Create client
Debugger2Client debugger2Client = await Debugger2Client.CreateAsync();
// Initialize request argument(s)
GetBreakpointRequest request = new GetBreakpointRequest
{
    DebuggeeId = "",
    BreakpointId = "",
    ClientVersion = "",
};
// Make the request
GetBreakpointResponse response = await debugger2Client.GetBreakpointAsync(request);

GetBreakpointAsync(GetBreakpointRequest, CancellationToken)

public virtual Task<GetBreakpointResponse> GetBreakpointAsync(GetBreakpointRequest request, CancellationToken cancellationToken)

Gets breakpoint information.

Parameters
NameDescription
requestGetBreakpointRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<GetBreakpointResponse>

A Task containing the RPC response.

Example
// Create client
Debugger2Client debugger2Client = await Debugger2Client.CreateAsync();
// Initialize request argument(s)
GetBreakpointRequest request = new GetBreakpointRequest
{
    DebuggeeId = "",
    BreakpointId = "",
    ClientVersion = "",
};
// Make the request
GetBreakpointResponse response = await debugger2Client.GetBreakpointAsync(request);

GetBreakpointAsync(String, String, String, CallSettings)

public virtual Task<GetBreakpointResponse> GetBreakpointAsync(string debuggeeId, string breakpointId, string clientVersion, CallSettings callSettings = null)

Gets breakpoint information.

Parameters
NameDescription
debuggeeIdString

Required. ID of the debuggee whose breakpoint to get.

breakpointIdString

Required. ID of the breakpoint to get.

clientVersionString

Required. The client version making the call. Schema: domain/type/version (e.g., google.com/intellij/v1).

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<GetBreakpointResponse>

A Task containing the RPC response.

Example
// Create client
Debugger2Client debugger2Client = await Debugger2Client.CreateAsync();
// Initialize request argument(s)
string debuggeeId = "";
string breakpointId = "";
string clientVersion = "";
// Make the request
GetBreakpointResponse response = await debugger2Client.GetBreakpointAsync(debuggeeId, breakpointId, clientVersion);

GetBreakpointAsync(String, String, String, CancellationToken)

public virtual Task<GetBreakpointResponse> GetBreakpointAsync(string debuggeeId, string breakpointId, string clientVersion, CancellationToken cancellationToken)

Gets breakpoint information.

Parameters
NameDescription
debuggeeIdString

Required. ID of the debuggee whose breakpoint to get.

breakpointIdString

Required. ID of the breakpoint to get.

clientVersionString

Required. The client version making the call. Schema: domain/type/version (e.g., google.com/intellij/v1).

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<GetBreakpointResponse>

A Task containing the RPC response.

Example
// Create client
Debugger2Client debugger2Client = await Debugger2Client.CreateAsync();
// Initialize request argument(s)
string debuggeeId = "";
string breakpointId = "";
string clientVersion = "";
// Make the request
GetBreakpointResponse response = await debugger2Client.GetBreakpointAsync(debuggeeId, breakpointId, clientVersion);

ListBreakpoints(ListBreakpointsRequest, CallSettings)

public virtual ListBreakpointsResponse ListBreakpoints(ListBreakpointsRequest request, CallSettings callSettings = null)

Lists all breakpoints for the debuggee.

Parameters
NameDescription
requestListBreakpointsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ListBreakpointsResponse

The RPC response.

Example
// Create client
Debugger2Client debugger2Client = Debugger2Client.Create();
// Initialize request argument(s)
ListBreakpointsRequest request = new ListBreakpointsRequest
{
    DebuggeeId = "",
    IncludeAllUsers = false,
    IncludeInactive = false,
    Action = new ListBreakpointsRequest.Types.BreakpointActionValue(),
    WaitToken = "",
    ClientVersion = "",
};
// Make the request
ListBreakpointsResponse response = debugger2Client.ListBreakpoints(request);

ListBreakpoints(String, String, CallSettings)

public virtual ListBreakpointsResponse ListBreakpoints(string debuggeeId, string clientVersion, CallSettings callSettings = null)

Lists all breakpoints for the debuggee.

Parameters
NameDescription
debuggeeIdString

Required. ID of the debuggee whose breakpoints to list.

clientVersionString

Required. The client version making the call. Schema: domain/type/version (e.g., google.com/intellij/v1).

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ListBreakpointsResponse

The RPC response.

Example
// Create client
Debugger2Client debugger2Client = Debugger2Client.Create();
// Initialize request argument(s)
string debuggeeId = "";
string clientVersion = "";
// Make the request
ListBreakpointsResponse response = debugger2Client.ListBreakpoints(debuggeeId, clientVersion);

ListBreakpointsAsync(ListBreakpointsRequest, CallSettings)

public virtual Task<ListBreakpointsResponse> ListBreakpointsAsync(ListBreakpointsRequest request, CallSettings callSettings = null)

Lists all breakpoints for the debuggee.

Parameters
NameDescription
requestListBreakpointsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ListBreakpointsResponse>

A Task containing the RPC response.

Example
// Create client
Debugger2Client debugger2Client = await Debugger2Client.CreateAsync();
// Initialize request argument(s)
ListBreakpointsRequest request = new ListBreakpointsRequest
{
    DebuggeeId = "",
    IncludeAllUsers = false,
    IncludeInactive = false,
    Action = new ListBreakpointsRequest.Types.BreakpointActionValue(),
    WaitToken = "",
    ClientVersion = "",
};
// Make the request
ListBreakpointsResponse response = await debugger2Client.ListBreakpointsAsync(request);

ListBreakpointsAsync(ListBreakpointsRequest, CancellationToken)

public virtual Task<ListBreakpointsResponse> ListBreakpointsAsync(ListBreakpointsRequest request, CancellationToken cancellationToken)

Lists all breakpoints for the debuggee.

Parameters
NameDescription
requestListBreakpointsRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ListBreakpointsResponse>

A Task containing the RPC response.

Example
// Create client
Debugger2Client debugger2Client = await Debugger2Client.CreateAsync();
// Initialize request argument(s)
ListBreakpointsRequest request = new ListBreakpointsRequest
{
    DebuggeeId = "",
    IncludeAllUsers = false,
    IncludeInactive = false,
    Action = new ListBreakpointsRequest.Types.BreakpointActionValue(),
    WaitToken = "",
    ClientVersion = "",
};
// Make the request
ListBreakpointsResponse response = await debugger2Client.ListBreakpointsAsync(request);

ListBreakpointsAsync(String, String, CallSettings)

public virtual Task<ListBreakpointsResponse> ListBreakpointsAsync(string debuggeeId, string clientVersion, CallSettings callSettings = null)

Lists all breakpoints for the debuggee.

Parameters
NameDescription
debuggeeIdString

Required. ID of the debuggee whose breakpoints to list.

clientVersionString

Required. The client version making the call. Schema: domain/type/version (e.g., google.com/intellij/v1).

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ListBreakpointsResponse>

A Task containing the RPC response.

Example
// Create client
Debugger2Client debugger2Client = await Debugger2Client.CreateAsync();
// Initialize request argument(s)
string debuggeeId = "";
string clientVersion = "";
// Make the request
ListBreakpointsResponse response = await debugger2Client.ListBreakpointsAsync(debuggeeId, clientVersion);

ListBreakpointsAsync(String, String, CancellationToken)

public virtual Task<ListBreakpointsResponse> ListBreakpointsAsync(string debuggeeId, string clientVersion, CancellationToken cancellationToken)

Lists all breakpoints for the debuggee.

Parameters
NameDescription
debuggeeIdString

Required. ID of the debuggee whose breakpoints to list.

clientVersionString

Required. The client version making the call. Schema: domain/type/version (e.g., google.com/intellij/v1).

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ListBreakpointsResponse>

A Task containing the RPC response.

Example
// Create client
Debugger2Client debugger2Client = await Debugger2Client.CreateAsync();
// Initialize request argument(s)
string debuggeeId = "";
string clientVersion = "";
// Make the request
ListBreakpointsResponse response = await debugger2Client.ListBreakpointsAsync(debuggeeId, clientVersion);

ListDebuggees(ListDebuggeesRequest, CallSettings)

public virtual ListDebuggeesResponse ListDebuggees(ListDebuggeesRequest request, CallSettings callSettings = null)

Lists all the debuggees that the user has access to.

Parameters
NameDescription
requestListDebuggeesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ListDebuggeesResponse

The RPC response.

Example
// Create client
Debugger2Client debugger2Client = Debugger2Client.Create();
// Initialize request argument(s)
ListDebuggeesRequest request = new ListDebuggeesRequest
{
    Project = "",
    IncludeInactive = false,
    ClientVersion = "",
};
// Make the request
ListDebuggeesResponse response = debugger2Client.ListDebuggees(request);

ListDebuggees(String, String, CallSettings)

public virtual ListDebuggeesResponse ListDebuggees(string project, string clientVersion, CallSettings callSettings = null)

Lists all the debuggees that the user has access to.

Parameters
NameDescription
projectString

Required. Project number of a Google Cloud project whose debuggees to list.

clientVersionString

Required. The client version making the call. Schema: domain/type/version (e.g., google.com/intellij/v1).

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ListDebuggeesResponse

The RPC response.

Example
// Create client
Debugger2Client debugger2Client = Debugger2Client.Create();
// Initialize request argument(s)
string project = "";
string clientVersion = "";
// Make the request
ListDebuggeesResponse response = debugger2Client.ListDebuggees(project, clientVersion);

ListDebuggeesAsync(ListDebuggeesRequest, CallSettings)

public virtual Task<ListDebuggeesResponse> ListDebuggeesAsync(ListDebuggeesRequest request, CallSettings callSettings = null)

Lists all the debuggees that the user has access to.

Parameters
NameDescription
requestListDebuggeesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ListDebuggeesResponse>

A Task containing the RPC response.

Example
// Create client
Debugger2Client debugger2Client = await Debugger2Client.CreateAsync();
// Initialize request argument(s)
ListDebuggeesRequest request = new ListDebuggeesRequest
{
    Project = "",
    IncludeInactive = false,
    ClientVersion = "",
};
// Make the request
ListDebuggeesResponse response = await debugger2Client.ListDebuggeesAsync(request);

ListDebuggeesAsync(ListDebuggeesRequest, CancellationToken)

public virtual Task<ListDebuggeesResponse> ListDebuggeesAsync(ListDebuggeesRequest request, CancellationToken cancellationToken)

Lists all the debuggees that the user has access to.

Parameters
NameDescription
requestListDebuggeesRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ListDebuggeesResponse>

A Task containing the RPC response.

Example
// Create client
Debugger2Client debugger2Client = await Debugger2Client.CreateAsync();
// Initialize request argument(s)
ListDebuggeesRequest request = new ListDebuggeesRequest
{
    Project = "",
    IncludeInactive = false,
    ClientVersion = "",
};
// Make the request
ListDebuggeesResponse response = await debugger2Client.ListDebuggeesAsync(request);

ListDebuggeesAsync(String, String, CallSettings)

public virtual Task<ListDebuggeesResponse> ListDebuggeesAsync(string project, string clientVersion, CallSettings callSettings = null)

Lists all the debuggees that the user has access to.

Parameters
NameDescription
projectString

Required. Project number of a Google Cloud project whose debuggees to list.

clientVersionString

Required. The client version making the call. Schema: domain/type/version (e.g., google.com/intellij/v1).

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ListDebuggeesResponse>

A Task containing the RPC response.

Example
// Create client
Debugger2Client debugger2Client = await Debugger2Client.CreateAsync();
// Initialize request argument(s)
string project = "";
string clientVersion = "";
// Make the request
ListDebuggeesResponse response = await debugger2Client.ListDebuggeesAsync(project, clientVersion);

ListDebuggeesAsync(String, String, CancellationToken)

public virtual Task<ListDebuggeesResponse> ListDebuggeesAsync(string project, string clientVersion, CancellationToken cancellationToken)

Lists all the debuggees that the user has access to.

Parameters
NameDescription
projectString

Required. Project number of a Google Cloud project whose debuggees to list.

clientVersionString

Required. The client version making the call. Schema: domain/type/version (e.g., google.com/intellij/v1).

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ListDebuggeesResponse>

A Task containing the RPC response.

Example
// Create client
Debugger2Client debugger2Client = await Debugger2Client.CreateAsync();
// Initialize request argument(s)
string project = "";
string clientVersion = "";
// Make the request
ListDebuggeesResponse response = await debugger2Client.ListDebuggeesAsync(project, clientVersion);

SetBreakpoint(SetBreakpointRequest, CallSettings)

public virtual SetBreakpointResponse SetBreakpoint(SetBreakpointRequest request, CallSettings callSettings = null)

Sets the breakpoint to the debuggee.

Parameters
NameDescription
requestSetBreakpointRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
SetBreakpointResponse

The RPC response.

Example
// Create client
Debugger2Client debugger2Client = Debugger2Client.Create();
// Initialize request argument(s)
SetBreakpointRequest request = new SetBreakpointRequest
{
    DebuggeeId = "",
    Breakpoint = new Breakpoint(),
    ClientVersion = "",
};
// Make the request
SetBreakpointResponse response = debugger2Client.SetBreakpoint(request);

SetBreakpoint(String, Breakpoint, String, CallSettings)

public virtual SetBreakpointResponse SetBreakpoint(string debuggeeId, Breakpoint breakpoint, string clientVersion, CallSettings callSettings = null)

Sets the breakpoint to the debuggee.

Parameters
NameDescription
debuggeeIdString

Required. ID of the debuggee where the breakpoint is to be set.

breakpointBreakpoint

Required. Breakpoint specification to set. The field location of the breakpoint must be set.

clientVersionString

Required. The client version making the call. Schema: domain/type/version (e.g., google.com/intellij/v1).

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
SetBreakpointResponse

The RPC response.

Example
// Create client
Debugger2Client debugger2Client = Debugger2Client.Create();
// Initialize request argument(s)
string debuggeeId = "";
Breakpoint breakpoint = new Breakpoint();
string clientVersion = "";
// Make the request
SetBreakpointResponse response = debugger2Client.SetBreakpoint(debuggeeId, breakpoint, clientVersion);

SetBreakpointAsync(SetBreakpointRequest, CallSettings)

public virtual Task<SetBreakpointResponse> SetBreakpointAsync(SetBreakpointRequest request, CallSettings callSettings = null)

Sets the breakpoint to the debuggee.

Parameters
NameDescription
requestSetBreakpointRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<SetBreakpointResponse>

A Task containing the RPC response.

Example
// Create client
Debugger2Client debugger2Client = await Debugger2Client.CreateAsync();
// Initialize request argument(s)
SetBreakpointRequest request = new SetBreakpointRequest
{
    DebuggeeId = "",
    Breakpoint = new Breakpoint(),
    ClientVersion = "",
};
// Make the request
SetBreakpointResponse response = await debugger2Client.SetBreakpointAsync(request);

SetBreakpointAsync(SetBreakpointRequest, CancellationToken)

public virtual Task<SetBreakpointResponse> SetBreakpointAsync(SetBreakpointRequest request, CancellationToken cancellationToken)

Sets the breakpoint to the debuggee.

Parameters
NameDescription
requestSetBreakpointRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<SetBreakpointResponse>

A Task containing the RPC response.

Example
// Create client
Debugger2Client debugger2Client = await Debugger2Client.CreateAsync();
// Initialize request argument(s)
SetBreakpointRequest request = new SetBreakpointRequest
{
    DebuggeeId = "",
    Breakpoint = new Breakpoint(),
    ClientVersion = "",
};
// Make the request
SetBreakpointResponse response = await debugger2Client.SetBreakpointAsync(request);

SetBreakpointAsync(String, Breakpoint, String, CallSettings)

public virtual Task<SetBreakpointResponse> SetBreakpointAsync(string debuggeeId, Breakpoint breakpoint, string clientVersion, CallSettings callSettings = null)

Sets the breakpoint to the debuggee.

Parameters
NameDescription
debuggeeIdString

Required. ID of the debuggee where the breakpoint is to be set.

breakpointBreakpoint

Required. Breakpoint specification to set. The field location of the breakpoint must be set.

clientVersionString

Required. The client version making the call. Schema: domain/type/version (e.g., google.com/intellij/v1).

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<SetBreakpointResponse>

A Task containing the RPC response.

Example
// Create client
Debugger2Client debugger2Client = await Debugger2Client.CreateAsync();
// Initialize request argument(s)
string debuggeeId = "";
Breakpoint breakpoint = new Breakpoint();
string clientVersion = "";
// Make the request
SetBreakpointResponse response = await debugger2Client.SetBreakpointAsync(debuggeeId, breakpoint, clientVersion);

SetBreakpointAsync(String, Breakpoint, String, CancellationToken)

public virtual Task<SetBreakpointResponse> SetBreakpointAsync(string debuggeeId, Breakpoint breakpoint, string clientVersion, CancellationToken cancellationToken)

Sets the breakpoint to the debuggee.

Parameters
NameDescription
debuggeeIdString

Required. ID of the debuggee where the breakpoint is to be set.

breakpointBreakpoint

Required. Breakpoint specification to set. The field location of the breakpoint must be set.

clientVersionString

Required. The client version making the call. Schema: domain/type/version (e.g., google.com/intellij/v1).

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<SetBreakpointResponse>

A Task containing the RPC response.

Example
// Create client
Debugger2Client debugger2Client = await Debugger2Client.CreateAsync();
// Initialize request argument(s)
string debuggeeId = "";
Breakpoint breakpoint = new Breakpoint();
string clientVersion = "";
// Make the request
SetBreakpointResponse response = await debugger2Client.SetBreakpointAsync(debuggeeId, breakpoint, clientVersion);

ShutdownDefaultChannelsAsync()

public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Returns
TypeDescription
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.