--- name: jdb-debugger description: Debug Java applications in real time using JDB (Java Debugger CLI). Attach to running JVMs or launch new ones under JDB, set breakpoints, step through code, inspect variables, analyze threads, and diagnose exceptions. Use when debugging Java programs, investigating runtime behavior, or diagnosing production issues on JVMs with JDWP enabled. compatibility: Requires JDK (jdb command), Bash shell, and a running or launchable Java application allowed-tools: Bash(jdb:*) Bash(java:*) Bash(python3:*) Read metadata: author: brunoborges version: "1.0" --- # Java Debugger (JDB) Skill Debug Java applications interactively using the JDK's built-in command-line debugger. ## Critical Rules for Agents 1. **NEVER create files in the workspace** (no `bp.txt`, `cmds.txt`, wrapper scripts, etc.). Use the inline CLI flags (`--bp`, `--cmd`, `--auto-inspect`) provided by the skill scripts. 2. **ALWAYS use the skill scripts** in `scripts/`. Never write custom JDB wrapper scripts, FIFO-based launchers, or shell scripts to drive JDB. 3. **Compile first, then debug.** Ensure classes are compiled before launching JDB. 4. **On Windows, invoke scripts via WSL:** `wsl bash scripts/