public abstract class Debugger2Client
Reference documentation and code samples for the Google Cloud Debugger v2 API class Debugger2Client.
Debugger2 client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.Debugger.V2Assembly
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 | |
---|---|
Type | Description |
string |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default Debugger2 scopes.
Property Value | |
---|---|
Type | Description |
IReadOnlyListstring |
The default Debugger2 scopes are:
GrpcClient
public virtual Debugger2.Debugger2Client GrpcClient { get; }
The underlying gRPC Debugger2 client
Property Value | |
---|---|
Type | Description |
Debugger2Debugger2Client |
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }
The service metadata associated with this client type.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
Debugger2Client | The created Debugger2Client. |
CreateAsync(CancellationToken)
public static Task<Debugger2Client> CreateAsync(CancellationToken cancellationToken = default)
Asynchronously creates a Debugger2Client using the default credentials, endpoint and settings. To specify custom credentials or other settings, use Debugger2ClientBuilder.
Parameter | |
---|---|
Name | Description |
cancellationToken | CancellationToken The CancellationToken to use while creating the client. |
Returns | |
---|---|
Type | Description |
TaskDebugger2Client | 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 | |
---|---|
Name | Description |
request | DeleteBreakpointRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// 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 | |
---|---|
Name | Description |
debuggeeId | string Required. ID of the debuggee whose breakpoint to delete. |
breakpointId | string Required. ID of the breakpoint to delete. |
clientVersion | string Required. The client version making the call.
Schema: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// 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 | |
---|---|
Name | Description |
request | DeleteBreakpointRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | DeleteBreakpointRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
debuggeeId | string Required. ID of the debuggee whose breakpoint to delete. |
breakpointId | string Required. ID of the breakpoint to delete. |
clientVersion | string Required. The client version making the call.
Schema: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
debuggeeId | string Required. ID of the debuggee whose breakpoint to delete. |
breakpointId | string Required. ID of the breakpoint to delete. |
clientVersion | string Required. The client version making the call.
Schema: |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | GetBreakpointRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
GetBreakpointResponse | The RPC response. |
// 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 | |
---|---|
Name | Description |
debuggeeId | string Required. ID of the debuggee whose breakpoint to get. |
breakpointId | string Required. ID of the breakpoint to get. |
clientVersion | string Required. The client version making the call.
Schema: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
GetBreakpointResponse | The RPC response. |
// 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 | |
---|---|
Name | Description |
request | GetBreakpointRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskGetBreakpointResponse | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | GetBreakpointRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskGetBreakpointResponse | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
debuggeeId | string Required. ID of the debuggee whose breakpoint to get. |
breakpointId | string Required. ID of the breakpoint to get. |
clientVersion | string Required. The client version making the call.
Schema: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskGetBreakpointResponse | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
debuggeeId | string Required. ID of the debuggee whose breakpoint to get. |
breakpointId | string Required. ID of the breakpoint to get. |
clientVersion | string Required. The client version making the call.
Schema: |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskGetBreakpointResponse | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | ListBreakpointsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ListBreakpointsResponse | The RPC response. |
// 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 | |
---|---|
Name | Description |
debuggeeId | string Required. ID of the debuggee whose breakpoints to list. |
clientVersion | string Required. The client version making the call.
Schema: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ListBreakpointsResponse | The RPC response. |
// 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 | |
---|---|
Name | Description |
request | ListBreakpointsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskListBreakpointsResponse | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | ListBreakpointsRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskListBreakpointsResponse | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
debuggeeId | string Required. ID of the debuggee whose breakpoints to list. |
clientVersion | string Required. The client version making the call.
Schema: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskListBreakpointsResponse | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
debuggeeId | string Required. ID of the debuggee whose breakpoints to list. |
clientVersion | string Required. The client version making the call.
Schema: |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskListBreakpointsResponse | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | ListDebuggeesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ListDebuggeesResponse | The RPC response. |
// 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 | |
---|---|
Name | Description |
project | string Required. Project number of a Google Cloud project whose debuggees to list. |
clientVersion | string Required. The client version making the call.
Schema: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ListDebuggeesResponse | The RPC response. |
// 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 | |
---|---|
Name | Description |
request | ListDebuggeesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskListDebuggeesResponse | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | ListDebuggeesRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskListDebuggeesResponse | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
project | string Required. Project number of a Google Cloud project whose debuggees to list. |
clientVersion | string Required. The client version making the call.
Schema: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskListDebuggeesResponse | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
project | string Required. Project number of a Google Cloud project whose debuggees to list. |
clientVersion | string Required. The client version making the call.
Schema: |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskListDebuggeesResponse | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | SetBreakpointRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
SetBreakpointResponse | The RPC response. |
// 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 | |
---|---|
Name | Description |
debuggeeId | string Required. ID of the debuggee where the breakpoint is to be set. |
breakpoint | Breakpoint Required. Breakpoint specification to set.
The field |
clientVersion | string Required. The client version making the call.
Schema: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
SetBreakpointResponse | The RPC response. |
// 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 | |
---|---|
Name | Description |
request | SetBreakpointRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSetBreakpointResponse | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | SetBreakpointRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSetBreakpointResponse | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
debuggeeId | string Required. ID of the debuggee where the breakpoint is to be set. |
breakpoint | Breakpoint Required. Breakpoint specification to set.
The field |
clientVersion | string Required. The client version making the call.
Schema: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSetBreakpointResponse | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
debuggeeId | string Required. ID of the debuggee where the breakpoint is to be set. |
breakpoint | Breakpoint Required. Breakpoint specification to set.
The field |
clientVersion | string Required. The client version making the call.
Schema: |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSetBreakpointResponse | A Task containing the RPC response. |
// 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 | |
---|---|
Type | Description |
Task | A task representing the asynchronous shutdown operation. |
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.