# Package controller2 (1.7.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.7.0 (latest)](https://docs.cloud.google.com/python/docs/reference/clouddebugger/latest/google.cloud.debugger_v2.services.controller2)
- [1.6.1](https://docs.cloud.google.com/python/docs/reference/clouddebugger/1.6.1/google.cloud.debugger_v2.services.controller2)
- [1.5.0](https://docs.cloud.google.com/python/docs/reference/clouddebugger/1.5.0/google.cloud.debugger_v2.services.controller2)
- [1.4.3](https://docs.cloud.google.com/python/docs/reference/clouddebugger/1.4.3/google.cloud.debugger_v2.services.controller2)
- [1.3.2](https://docs.cloud.google.com/python/docs/reference/clouddebugger/1.3.2/google.cloud.debugger_v2.services.controller2)
- [1.2.1](https://docs.cloud.google.com/python/docs/reference/clouddebugger/1.2.1/google.cloud.debugger_v2.services.controller2)
- [1.1.0](https://docs.cloud.google.com/python/docs/reference/clouddebugger/1.1.0/google.cloud.debugger_v2.services.controller2)
- [1.0.2](https://docs.cloud.google.com/python/docs/reference/clouddebugger/1.0.2/google.cloud.debugger_v2.services.controller2)
- [0.1.5](https://docs.cloud.google.com/python/docs/reference/clouddebugger/0.1.5/google.cloud.debugger_v2.services.controller2)
API documentation for `debugger_v2.services.controller2` package.

## Classes

### [Controller2AsyncClient](https://docs.cloud.google.com/python/docs/reference/clouddebugger/latest/google.cloud.debugger_v2.services.controller2.Controller2AsyncClient)

The Controller service provides the API for orchestrating a
collection of debugger agents to perform debugging tasks. These
agents are each attached to a process of an application which may
include one or more replicas.

The debugger agents register with the Controller to identify the
application being debugged, the Debuggee. All agents that register
with the same data, represent the same Debuggee, and are assigned
the same `debuggee_id`.

The debugger agents call the Controller to retrieve the list of
active Breakpoints. Agents with the same `debuggee_id` get the
same breakpoints list. An agent that can fulfill the breakpoint
request updates the Controller with the breakpoint result. The
controller selects the first result received and discards the rest
of the results. Agents that poll again for active breakpoints will
no longer have the completed breakpoint in the list and should
remove that breakpoint from their attached process.

The Controller service does not provide a way to retrieve the
results of a completed breakpoint. This functionality is available
using the Debugger service.

### [Controller2Client](https://docs.cloud.google.com/python/docs/reference/clouddebugger/latest/google.cloud.debugger_v2.services.controller2.Controller2Client)

The Controller service provides the API for orchestrating a
collection of debugger agents to perform debugging tasks. These
agents are each attached to a process of an application which may
include one or more replicas.

The debugger agents register with the Controller to identify the
application being debugged, the Debuggee. All agents that register
with the same data, represent the same Debuggee, and are assigned
the same `debuggee_id`.

The debugger agents call the Controller to retrieve the list of
active Breakpoints. Agents with the same `debuggee_id` get the
same breakpoints list. An agent that can fulfill the breakpoint
request updates the Controller with the breakpoint result. The
controller selects the first result received and discards the rest
of the results. Agents that poll again for active breakpoints will
no longer have the completed breakpoint in the list and should
remove that breakpoint from their attached process.

The Controller service does not provide a way to retrieve the
results of a completed breakpoint. This functionality is available
using the Debugger service.