google-cloud-debugger - Class Google::Cloud::Debugger::Tracer (v0.42.2)
Reference documentation and code samples for the google-cloud-debugger class Google::Cloud::Debugger::Tracer.
Tracer
When active breakpoints are set for the debugger, the tracer monitors
the running Ruby application and triggers evaluation when the code is
executed at the breakpoint locations.
The tracer tracks the running application using several Ruby TracePoints
and C level Ruby debugging API.
[[["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::Tracer (v0.42.2)\n\nReference documentation and code samples for the google-cloud-debugger class Google::Cloud::Debugger::Tracer.\n\nTracer\n------\n\nWhen active breakpoints are set for the debugger, the tracer monitors\nthe running Ruby application and triggers evaluation when the code is\nexecuted at the breakpoint locations.\n\nThe tracer tracks the running application using several Ruby TracePoints\nand C level Ruby debugging API. \n\nInherits\n--------\n\n- Object\n\nMethods\n-------\n\n### #agent\n\n def agent() -\u003e Google::Cloud::Debugger::Agent\n\nThe debugger agent this tracer belongs to \n**Returns**\n\n- ([Google::Cloud::Debugger::Agent](./Google-Cloud-Debugger-Agent))\n\n### #breakpoints_hit\n\n def breakpoints_hit(breakpoints, call_stack_bindings)\n\nCallback function when a set of breakpoints are hit. Handover the hit\nbreakpoint to breakpoint_manager to be evaluated.\n\n### #start\n\n def start()\n\nGet the sync the breakpoints cache with BreakpointManager. Start\ntracing and monitoring if there are any breakpoints.\n\n### #stop\n\n def stop()\n\nStops all tracing.\n\n### #update_breakpoints_cache\n\n def update_breakpoints_cache()\n\nUpdate tracer's private breakpoints cache with the list of active\nbreakpoints from BreakpointManager.\n\n\n\u003cbr /\u003e\n\nThis methood is atomic for thread safety purpose."]]