Index of every page on this site: llms.txt
All skills
github avatar

/java-debugging

@f10fdb8 official
by githubgithub/awesome-copilot42k stars
5,426
Run it yourself

Debug Java applications systematically: JDWP remote debugging, jdb, VS Code and IntelliJ attach, debugging Maven/Gradle tests, Spring Boot and Quarkus dev mode, containers, breakpoints/logpoints, and reading stack traces. Use when the user needs to find the cause of a Java bug, exception, wrong behavior, or failing test, or asks how to attach a debugger.

Use this Skill: https://skilld.dev/gh/github/awesome-copilot/java-debugging

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesstack-traces.md

≈420 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Reading Java stack traces

Anatomy

java.lang.IllegalStateException: Order 42 already shipped
	at com.example.OrderService.ship(OrderService.java:88)
	at com.example.OrderController.ship(OrderController.java:31)
	...
Caused by: java.sql.SQLException: Connection refused
	at ...
	... 12 more
  • First line: exception type and message. Read the message literally.
  • Top frame is where it was thrown; walk down to the first frame in your own code.
  • Caused by: chains: the deepest (last) cause is usually the root cause. ... N more means frames shared with the enclosing trace.
  • Suppressed: entries come from try-with-resources close failures.

Practical tips

  1. Open the first frame in your own packages and check which reference could be null or which argument is invalid.
  2. NullPointerException: helpful messages (on by default since JDK 15) name the null variable or call.
  3. Wrapper exceptions (BeanCreationException, CompletionException, InvocationTargetException, ExecutionException): skip to the deepest Caused by.
  4. OutOfMemoryError: use the java-diagnostics skill. StackOverflowError: look for the repeating frame pattern (unbounded recursion).
  5. Missing traces on hot repeated exceptions come from OmitStackTraceInFastThrow; check earlier log occurrences or run locally with -XX:-OmitStackTraceInFastThrow.
  6. Proxy/generated frames ($$SpringCGLIB$$, $Proxy, lambdas) are noise; focus on neighbouring frames.
  7. Reactive/async: the trace points to scheduler threads; use correlation IDs or operator debug in dev.
  8. Include the full trace, Java version, and dependency versions when asking for help or filing issues.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts28d3 checks · Risk SAFE
  • Gen Agent Trust Hub28d

    The skill provides instructional content for debugging Java applications and is safe to use. It emphasizes security best practices, such as binding debuggers to loopback addresses and avoiding production debugging.

  • Socket29d

    No alerts

  • Snyk29d

    Risk: LOW · No issues

Signed by skilld at f10fdb8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated last month

README badge

README badge for github/awesome-copilot/java-debugging