google-cloud-debugger - Class Google::Cloud::Debugger::Project (v0.42.2)
Stay organized with collections
Save and categorize content based on your preferences.
Reference documentation and code samples for the google-cloud-debugger class Google::Cloud::Debugger::Project.
Project
Projects are top-level containers in Google Cloud Platform. They store
information about billing and authorized users, and they control access
to Stackdriver Debugger resources. Each project has a friendly name and
a unique ID. Projects can be created only in the Google Developers
Console.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# google-cloud-debugger - Class Google::Cloud::Debugger::Project (v0.42.2)\n\nReference documentation and code samples for the google-cloud-debugger class Google::Cloud::Debugger::Project.\n\nProject\n-------\n\nProjects are top-level containers in Google Cloud Platform. They store\ninformation about billing and authorized users, and they control access\nto Stackdriver Debugger resources. Each project has a friendly name and\na unique ID. Projects can be created only in the [Google Developers\nConsole](https://console.developers.google.com).\n\nSee Google::Cloud#debugger \n\nInherits\n--------\n\n- Object\n\nExample\n-------\n\n```ruby\nrequire \"google/cloud/debugger\"\n\ndebugger = Google::Cloud::Debugger.new\ndebugger.start\n```\n\nMethods\n-------\n\n### #agent\n\n def agent()\n\nThe Stackdriver Debugger Agent object.\n\n### #attach\n\n def attach()\n\n**Alias Of** : [#start](./Google-Cloud-Debugger-Project#Google__Cloud__Debugger__Project_start_instance_) \nStart the Stackdriver Debugger Agent.\n\n\n\u003cbr /\u003e\n\nSee [Agent#start](/ruby/docs/reference/google-cloud-debugger/latest/Google-Cloud-Debugger-Agent#Google__Cloud__Debugger__Agent_start_instance_ \"Google::Cloud::Debugger::Agent#start (method)\") for more details.\n**Example** \n\n```ruby\nrequire \"google/cloud/debugger\"\n\ndebugger = Google::Cloud::Debugger.new\ndebugger.start\n```\n\n### #project\n\n def project() -\u003e String\n\n**Alias Of** : [#project_id](./Google-Cloud-Debugger-Project#Google__Cloud__Debugger__Project_project_id_instance_) \nThe ID of the current project. \n**Returns**\n\n- (String) --- the Google Cloud project ID\n**Example** \n\n```ruby\nrequire \"google/cloud/debugger\"\n\ndebugger = Google::Cloud::Debugger.new(\n project_id: \"my-project\",\n credentials: \"/path/to/keyfile.json\"\n)\n\ndebugger.project_id #=\u003e \"my-project\"\n```\n\n### #project_id\n\n def project_id() -\u003e String\n\n**Aliases**\n\n- [#project](./Google-Cloud-Debugger-Project#Google__Cloud__Debugger__Project_project_instance_) \nThe ID of the current project. \n**Returns**\n\n- (String) --- the Google Cloud project ID\n**Example** \n\n```ruby\nrequire \"google/cloud/debugger\"\n\ndebugger = Google::Cloud::Debugger.new(\n project_id: \"my-project\",\n credentials: \"/path/to/keyfile.json\"\n)\n\ndebugger.project_id #=\u003e \"my-project\"\n```\n\n### #start\n\n def start()\n\n**Aliases**\n\n- [#attach](./Google-Cloud-Debugger-Project#Google__Cloud__Debugger__Project_attach_instance_) \nStart the Stackdriver Debugger Agent.\n\n\n\u003cbr /\u003e\n\nSee [Agent#start](/ruby/docs/reference/google-cloud-debugger/latest/Google-Cloud-Debugger-Agent#Google__Cloud__Debugger__Agent_start_instance_ \"Google::Cloud::Debugger::Agent#start (method)\") for more details.\n**Example** \n\n```ruby\nrequire \"google/cloud/debugger\"\n\ndebugger = Google::Cloud::Debugger.new\ndebugger.start\n```\n\n### #stop\n\n def stop()\n\nStop the Stackdriver Debugger Agent.\n\n\n\u003cbr /\u003e\n\nSee [Agent#stop](/ruby/docs/reference/google-cloud-debugger/latest/Google-Cloud-Debugger-Agent#Google__Cloud__Debugger__Agent_stop_instance_ \"Google::Cloud::Debugger::Agent#stop (method)\") for more details.\n**Example** \n\n```ruby\nrequire \"google/cloud/debugger\"\n\ndebugger = Google::Cloud::Debugger.new\ndebugger.start\ndebugger.stop\n```"]]