Authorization notice. Debroid is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.
Who it is forAn AI agent working on a logic bug in a specific Android class, where a developer wants the runtime values at one line.
The problemReading code alone can suggest several causes, and adding log statements means rebuilding and reinstalling the app for each guess.
The outcomeThe agent pauses the app at the chosen line, reads the locals and instance fields as JSON, and narrows the cause without rebuilding.
What you need first
- 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
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 localsanddebroid inspect --max-depth=2(inferred, check the README) - Step or resume with
debroid stepordebroid resume, and clear the point withdebroid remove-break
Prompt for your agent
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.
Caveat. Inspect output filters out static and synthetic fields by default, so pass `--include-static` or `--include-internal` only when you need them.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for PatilShreyas/debroid and "Pause at a suspect line and inspect its variables"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer