DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to catch an app crash and read live state at the throw with Debroid

Set exception traps, reproduce the crash, and read locals and frames without a GUI.

Short answer: Install the CLI with curl -fsSL https://raw.githubusercontent.com/PatilShreyas/debroid/main/install.sh | bash; then start the app suspended with debroid launch, or attach to a running app with debroid attach; set an exception trap with debroid catch-exception (uncaught only by default; add --caught if needed). All steps.

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

  1. Install the CLI with curl -fsSL https://raw.githubusercontent.com/PatilShreyas/debroid/main/install.sh | bash
  2. Start the app suspended with debroid launch, or attach to a running app with debroid attach
  3. Set an exception trap with debroid catch-exception (uncaught only by default; add --caught if needed)
  4. Trigger the bug in the app, then read events with debroid poll --with-stacktrace (inferred, check the README)
  5. Read the paused state with debroid pause-state --pretty and then debroid 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer