java-debug

java-debug is a skill for Claude Code from FgForrest/mcp-jdwp-java. It costs 60 tokens per session (12,408 once invoked), scanned A, original, MIT.

A live debugger for running Java applications through JDWP, Java’s standard debugging connection. It lets you pause the application, inspect or change values, catch exception locations, and watch fields being read or written.

In plain words
What is it for?
Use it for failing tests, wrapped exceptions, incorrect values, race conditions, off-by-one errors, and other bugs that appear only while the program runs.
Why use it?
It helps investigate runtime bugs when code inspection or error messages do not show where a value changes or why an exception occurs. You can examine the running process without repeatedly adding print statements and restarting.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the jdwp-debugging plugin — 2 skills, 1 hook shipped together

Good fit Use it for failing tests, wrapped exceptions, incorrect values, race conditions, off-by-one errors, and other bugs that appear only while the program runs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fgforrest/mcp-jdwp-java/java-debug
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add FgForrest/mcp-jdwp-java --skill java-debug
Clone the repo
git clone --depth 1 https://github.com/FgForrest/mcp-jdwp-java

Made for: Claude Code.

Or install jdwp-debugging, the plugin that ships this one along with the rest of its 2 skills, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for java-debug

README.md
[![agentmods](https://agentmods.dev/badge/skills/fgforrest/mcp-jdwp-java/java-debug/github.svg)](https://agentmods.dev/skills/fgforrest/mcp-jdwp-java/java-debug)
Your own site
<a href="https://agentmods.dev/skills/fgforrest/mcp-jdwp-java/java-debug"><img src="https://agentmods.dev/badge/skills/fgforrest/mcp-jdwp-java/java-debug/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for java-debug

Your own site · 80×15
<a href="https://agentmods.dev/skills/fgforrest/mcp-jdwp-java/java-debug"><img src="https://agentmods.dev/badge/skills/fgforrest/mcp-jdwp-java/java-debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 12,408 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00060 $0.12408
Opus 5.5 $0.00024 $0.04963
Sonnet 5.5 $0.00012 $0.02482
Haiku 4.5 $0.00006 $0.01241

Measured 4d ago against content hash 93b5ada47f52, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

java-debug scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/java-debug/SKILL.md · 396 lines

How it starts

The opening of the file, as written. The whole thing — 396 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Java Debug

Live debugging of a running JVM via JDWP. Replaces "add a println, re-run, repeat" with: set breakpoint -> hit it -> inspect everything -> mutate state -> resume.

Use when:

  • A test fails and the assertion message doesn't tell you why
  • An exception is buried under several layers of wrapping
  • A value is wrong but you can't tell where it changes
  • A bug only happens under specific conditions (race, off-by-one, edge case)
  • Stepping through code in your head doesn't match what the runtime does

Don't use when:

  • The bug is clear from code review alone
  • You already know the fix and just need to write it
  • It's a build/compile failure (not a runtime bug)

Prerequisites

The jdwp_* tools come from the plugin's jdwp-inspector MCP server. If they are missing, the server is not connected — usually right after an install or update, while its JAR is still being prepared. Do not fall back to println debugging: follow references/troubleshooting.md to find out why, and ask the user to reconnect.

The target JVM must be running with the JDWP agent. The port is whatever the developer (or their deployment) chose — port 5005 is only the convention for build-system test shortcuts. Long-running services very often expose JDWP on a different port (8003, 8000, 9009, …).

-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:<port>

suspend=y blocks the JVM at startup until you attach — use for tests and early-startup bugs. suspend=n lets the JVM run freely — use for long-running services where you attach on demand.

Two attach scenarios:

  1. Launch-and-debug (tests, reproducers): start a fresh JVM yourself, usually via one of the quick-launch shortcuts below.
  2. Attach-to-running (services already up): skip the launch step entirely — go straight to attach. The port follows the resolution priority in the next section.

Quick launch shortcuts (these all default to port 5005):

  • Maven Surefire: mvn test -Dtest=<TestClass> -Dmaven.surefire.debug
  • Gradle: ./gradlew test --tests "com.example.MyTest" --debug-jvm
  • Standalone: java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005 -jar app.jar

Read the full file on GitHub · 396 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago Changed · +2 lines 93b5ada47f52
  2. 5d ago Changed · +1 lines 46209fc3ce0b
  3. 6d ago Changed · +2 lines b424bc2bc68d
  4. 7d ago Changed · +4 lines dc8527e265f1
  5. 8d ago Changed · +2 lines ac3a4d1097eb
  6. 15d ago Changed · -1 lines 228c8526cc71
  7. 29d ago Changed 0e425178cf2b
  8. 1mo ago Changed · +19 lines c841bb51b138
  9. 1mo ago Changed · +25 lines 380a3fda0b99
  10. 3mo ago First seen · 342 lines · 60 tokens per session scan A ca8b77aea530

Subscribe to this mod's changes

java-debug is a skill published in the GitHub repository FgForrest/mcp-jdwp-java (36 stars, last pushed 5d ago), licensed MIT. It adds 60 tokens to every session and 12,408 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

java-debug compared with skills from other repositories

java-debug next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
java-debugFgForrest/mcp-jdwp-javaSkill365d agoMITA60Claude Code
jdbgPieceOfFall/jdbgSkill114mo agoApache-2.0A62Claude Code
nullawaychromium/chromiumSkill25ktodayBSD-3-ClauseA43Claude Code, Codex
wxjava-troubleshooterbinarywang/WxJavaSkill33kyesterdayApache-2.0A65Codex
performance-smell-detectiondecebals/claude-code-javaSkill7801mo agoMITA51Claude Code, Codex
neqsim-code-hygieneequinor/neqsimSkill177todayApache-2.0A120Claude Code, Codex
126-java-exception-handlingjabrena/plinthSkill469yesterdayApache-2.0A144Claude Code, Codex