google-cloud-debugger - Class Google::Cloud::Debugger::Railtie (v0.42.2)
Reference documentation and code samples for the google-cloud-debugger class Google::Cloud::Debugger::Railtie.
Railtie
Google::Cloud::Debugger::Railtie automatically adds the
Google::Cloud::Debugger::Middleware to Rack in a Rails environment.
The Middleware is only added when the
Google::Cloud.configure.use_debugger setting is true or Rails is
in the production environment.
When loaded, the Google::Cloud::Debugger::Middleware will be inserted
after the Rack::ETag Middleware, which is top of the Rack stack, closest
to the application code.
The Railtie should also initialize a debugger to be used by the
Middleware. See the Configuration
Guide
on how to configure the Railtie and Middleware.
Inherits
Rails::Railtie
Methods
.start_agents
defself.start_agents()
Inform the Railtie that it is safe to start debugger agents.
This simply calls Middleware.start_agents.
See its documentation for more information.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# google-cloud-debugger - Class Google::Cloud::Debugger::Railtie (v0.42.2)\n\nReference documentation and code samples for the google-cloud-debugger class Google::Cloud::Debugger::Railtie.\n\nRailtie\n-------\n\nGoogle::Cloud::Debugger::Railtie automatically adds the\nGoogle::Cloud::Debugger::Middleware to Rack in a Rails environment.\n\nThe Middleware is only added when the\n`Google::Cloud.configure.use_debugger` setting is true or Rails is\nin the production environment.\n\nWhen loaded, the Google::Cloud::Debugger::Middleware will be inserted\nafter the Rack::ETag Middleware, which is top of the Rack stack, closest\nto the application code.\n\nThe Railtie should also initialize a debugger to be used by the\nMiddleware. See the [Configuration\nGuide](https://googleapis.dev/ruby/stackdriver/latest/file.INSTRUMENTATION_CONFIGURATION.html)\non how to configure the Railtie and Middleware. \n\nInherits\n--------\n\n- Rails::Railtie\n\nMethods\n-------\n\n### .start_agents\n\n def self.start_agents()\n\nInform the Railtie that it is safe to start debugger agents.\nThis simply calls [Middleware.start_agents](/ruby/docs/reference/google-cloud-debugger/latest/Google-Cloud-Debugger-Middleware#Google__Cloud__Debugger__Middleware_start_agents_class_ \"Google::Cloud::Debugger::Middleware.start_agents (method)\").\nSee its documentation for more information."]]