code: def _StartDebugger():
    
    global _hub_client
    global _breakpoints_manager
  
    cdbg_native.InitializeModule(_flags)
  
    _hub_client = gcp_hub_client.GcpHubClient()
    visibility_policy = _GetVisibilityPolicy()
  
    _breakpoints_manager = breakpoints_manager.BreakpointsManager(
        _hub_client,
        visibility_policy)
  
    # Set up loggers for logpoints.
    capture_collector.SetLogger(logging.getLogger())
  
    capture_collector.CaptureCollector.pretty_printers.append(
        appengine_pretty_printers.PrettyPrinter)
  
    _hub_client.on_active_breakpoints_changed = (
        _breakpoints_manager.SetActiveBreakpoints)
    _hub_client.on_idle = _breakpoints_manager.CheckBreakpointsExpiration
    _hub_client.SetupAuth(
        _flags.get('project_id'),
        _flags.get('project_number'),
        _flags.get('service_account_json_file'))
    _hub_client.InitializeDebuggeeLabels(_flags)
    _hub_client.Start()
docs: Configures and starts the debugger.