java-debugging
Skill by github
Debug Java applications with a repeatable, hypothesis-driven method. It covers JDWP attach, jdb, VS Code and IntelliJ, Maven and Gradle tests, and Spring Boot and Quarkus dev mode. It is for developers tracking down Java bugs or failing tests.
Install java-debugging
Built from the published package, never by AI.
git clone --depth 1 https://github.com/github/awesome-copilot /tmp/awesome-copilot && mkdir -p ~/.claude/skills && cp -r /tmp/awesome-copilot/skills/java-debugging ~/.claude/skills/java-debuggingRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/github/awesome-copilot /tmp/awesome-copilot && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/awesome-copilot/skills/java-debugging ~/.gemini/antigravity-cli/skills/java-debuggingAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides an AI assistant through finding the root cause of a Java defect. It describes a loop of reproducing the bug, minimizing it, reading stack traces, and testing one falsifiable hypothesis with the least intrusive tool, such as a log line or logpoint before a breakpoint. It then recommends adding a regression test and removing debug flags and temporary logging.
The skill covers starting a JVM with JDWP on loopback, attaching with jdb, VS Code, or IntelliJ IDEA, and debugging Maven Surefire and Failsafe, Gradle tests, Spring Boot, and Quarkus dev mode. It also covers container and Kubernetes port forwarding and common pitfalls. It is written for developers who need to find the cause of a Java bug, exception, or failing test, or who want to attach a debugger.
Written from the project's SKILL.md and checked against it.
What it can do
- JDWP attach setupStarts a JVM with a JDWP agent bound to 127.0.0.1 and explains safe settings.
- jdb sessionsShows how to attach with jdb and set breakpoints, step, and inspect locals.
- VS Code and IntelliJ attachProvides launch.json and IntelliJ remote debug settings for attaching to a JVM.
- Maven and Gradle test debuggingGives commands for debugging Surefire, Failsafe, and Gradle test tasks on port 5005.
- Spring Boot and Quarkus debuggingExplains debugging Spring Boot runs and Quarkus dev mode, including the debug port.
- Container debuggingDescribes publishing a JDWP port from Docker and port-forwarding a Kubernetes pod.
- Stack trace readingLinks to a reference on reading Java stack traces and helpful NullPointerException messages.
- Common pitfalls guidanceCovers hot code replace limits, missing debug info, race conditions, and virtual threads.
What you need
- Java Development Kit (JDK), with versions 8 to 26 referenced in the source
- Maven or Gradle for debugging tests and Spring Boot
- Docker or Kubernetes for container debugging
- VS Code with the Extension Pack for Java, or IntelliJ IDEA, for IDE attach
Try asking
- Help me attach jdb to a Java app running on port 5005.
- Set up VS Code to attach to my local JVM for debugging.
- Show me how to debug a failing Maven Surefire test with JDWP.
Good to know
- Attaching a debugger to production requires explicit user instruction.
- Hot code replace only swaps method bodies; signature changes need a restart.
- Gradle versions before 7.6 and older plugin versions were not tested.
- On JDK 8, a bare JDWP address may listen on all interfaces.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/java-debugging/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md8 KB -
references/stack-traces.md2 KB
Alternatives to java-debugging
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
java-debugging: common questions
Is it safe to leave JDWP enabled?
The source says never leave a debug agent enabled on production, because JDWP gives full code execution to whoever connects. It recommends binding to 127.0.0.1 and using an SSH tunnel or port-forward for remote hosts.
Why does my debug port clash with another JVM?
The source says JAVA_TOOL_OPTIONS applies to every JVM started in that environment, which can cause Address already in use errors. It recommends scoping the flag to the one process you want to debug.
Which Quarkus debug port is used by default?
The source says Quarkus dev mode opens debug port 5005 by default. Setting -Ddebug=5006 changes the port, and -Ddebug=false disables it.
How do I install java-debugging?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is java-debugging free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is java-debugging safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to java-debugging?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
