{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "patilshreyas-debroid--pause-at-line-and-inspect-variables",
 "repo": "PatilShreyas/debroid",
 "repo_url": "https://github.com/PatilShreyas/debroid",
 "repo_slug": "patilshreyas-debroid",
 "title": "Pause at a suspect line and inspect its variables",
 "page_title": "How to pause at a suspect line and inspect its variables with Debroid",
 "summary": "Set a line breakpoint, hit it, and read the object state the agent needs to test a hypothesis.",
 "who": "An AI agent working on a logic bug in a specific Android class, where a developer wants the runtime values at one line.",
 "problem": "Reading code alone can suggest several causes, and adding log statements means rebuilding and reinstalling the app for each guess.",
 "outcome": "The agent pauses the app at the chosen line, reads the locals and instance fields as JSON, and narrows the cause without rebuilding.",
 "steps": [
  "Install the CLI with `curl -fsSL https://raw.githubusercontent.com/PatilShreyas/debroid/main/install.sh | bash`",
  "Set a line breakpoint in the target class with `debroid break`; it defers automatically if the class is not loaded yet",
  "Start the flow that reaches that line, then wait for the pause with `debroid poll`",
  "Read the values with `debroid locals` and `debroid inspect --max-depth=2` (inferred, check the README)",
  "Step or resume with `debroid step` or `debroid resume`, and clear the point with `debroid remove-break`"
 ],
 "agent_prompt": "Use the Debroid CLI to set a breakpoint in <class-name> at line <line-number> of the app <package-name>. Trigger <user-action>, then run `debroid pause-state --pretty` and `debroid inspect --max-depth=2`. Return the local variables and relevant object fields as JSON, and verify that the paused line matches the breakpoint you set.",
 "agents": [
  "claude-code",
  "codex",
  "cursor"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "Inspect output filters out static and synthetic fields by default, so pass `--include-static` or `--include-internal` only when you need them.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "kotlin",
 "requirements": [
  "Java JDK 11+ with JAVA_HOME set",
  "Android SDK with adb in your PATH",
  "An Android app you can build and run, with debugging enabled",
  "A terminal where an AI agent can run commands"
 ],
 "risk": "dual-use",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/patilshreyas-debroid/pause-at-line-and-inspect-variables/",
 "md": "https://dedupedai.com/use-cases/patilshreyas-debroid/pause-at-line-and-inspect-variables/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/patilshreyas-debroid--pause-at-line-and-inspect-variables.json",
 "api_version": "v1"
}
