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.
Get 5 new use cases every morning. Free, one short email, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
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 [email protected] and we will look at it promptly. Full disclaimer page