Authorization notice. Debroid is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.
Reverse engineering. Live JVM inspection can read memory of any app attached to the debugger, so only attach to apps you are authorized to debug.
Who it is forAn Android developer or AI agent handed a crash report with no clear cause, who needs the exact runtime values when the exception fires.
The problemStack traces show where an exception landed but not the variable values that caused it, and reproducing the crash by hand in Android Studio is slow for an agent.
The outcomeThe agent gets a JSON record of the caught or uncaught exception, the frames, and the local values at that moment, and can propose a fix based on them.
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 - Start the app suspended with
debroid launch, or attach to a running app withdebroid attach - Set an exception trap with
debroid catch-exception(uncaught only by default; add--caughtif needed) - Trigger the bug in the app, then read events with
debroid poll --with-stacktrace(inferred, check the README) - Read the paused state with
debroid pause-state --prettyand thendebroid resume(inferred, check the README)
Prompt for your agent
Use the Debroid CLI on the Android app <package-name>. Set an uncaught exception trap, trigger the crash path <steps-to-reproduce>, and run `debroid poll --with-stacktrace` followed by `debroid pause-state`. Return the exception class, the frame where it was thrown, and the local values at that point as JSON. Verify that the exception class matches the crash in the bug report before proposing a fix.
Caveat. Debroid needs JDK 11+ and adb set up before the first command, and the daemon listens on localhost without authentication, so run it only on a machine where every local user is trusted.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for PatilShreyas/debroid and "Catch an app crash and read live state at the throw"
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