Skip to content

Java debugging vs Java diagnostics

Java debugging is an open-source agent skill for developer tools. Java diagnostics is an open-source agent skill for developer tools.

  • Java debugging is best for attach a debugger to a running java service on my machine.
  • Java diagnostics is best for find which threads cause high cpu in a running java service.
What it is
Java debugging is an open-source agent skill for developer tools.
Java diagnostics is an open-source agent skill for developer tools.
Best for
Attach a debugger to a running Java service on my machine
Find which threads cause high CPU in a running Java service
Kind
Skill
Skill
Pricing
Open source
Open source
Platforms
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
GitHub stars
41.3K
41.3K
Last commit
Nov 2026
Nov 2026
License
MIT
MIT
Open source
Good for
Attach a debugger to a running Java service on my machine; Debug a failing Maven or Gradle unit test step by step; Find the cause of a NullPointerException in my Spring Boot app
Find which threads cause high CPU in a running Java service; Investigate a suspected memory leak or OutOfMemoryError; Diagnose a deadlock or thread starvation in a JVM app

What Java debugging does

  • JDWP remote attach

    Start a JVM with a loopback debug agent and connect from jdb or an IDE.

  • Build tool test debugging

    Run Maven Surefire, Failsafe and Gradle tests under a suspended debugger.

  • Framework dev mode debugging

    Attach to Spring Boot run tasks and Quarkus dev mode debug ports.

  • Container debugging setup

    Expose a JVM debug port from Docker or Kubernetes with loopback-only guidance.

  • Hypothesis-driven method

    Reproduce, minimize and test one falsifiable hypothesis before adding fixes.

  • Common pitfall checklist

    Covers hot code replace limits, missing debug info, races and async traces.

What Java diagnostics does

  • Symptom-based tool selection

    A decision table maps symptoms such as high CPU, OOM, slow startup or GC pauses to the first diagnostic step and follow-up tool.

  • Tiered permission model

    Commands are grouped into read-only, recording and intrusive tiers, each with consent and overhead rules.

  • Thread and deadlock analysis

    Guidance on collecting multiple thread dumps and detecting deadlocks or thread starvation over time.

  • Heap and memory investigation

    Covers class histograms, heap dumps analysed with Eclipse MAT, and Native Memory Tracking for growing RSS.

  • GC log and JFR profiling

    Explains reading GC logs with jstat and using Java Flight Recorder events for pauses and runtime behaviour.

  • Container-aware diagnostics

    Notes on attaching tools inside containers and on memory limits such as cgroup settings and MaxRAMPercentage.

Java debugging vs Java diagnostics: questions

Is Java debugging or Java diagnostics cheaper?

Both are open source. Compare current plans on each official site.

What is the difference between Java debugging and Java diagnostics?

Java debugging is an open-source agent skill for developer tools. Java diagnostics is an open-source agent skill for developer tools.

Keep comparing