Codex debug-surefire for Local RDF4J Test Breakpoints
Pause one Maven Surefire test before it starts and inspect the local test JVM with the JDK debugger. Use this for ordinary local debugging with a known test class or method.
中文Install in Codex
Codex, the pinned RDF4J checkout, and the repository's Maven and JDK. The terminal workflow uses the JDK's jdb debugger.
- Keep `.codex/skills/debug-surefire/` and its `scripts/debug-surefire.sh` in the checkout to preserve the documented repository-relative path.
- Copy the complete skill directory to `.agents/skills/debug-surefire/` in that checkout and select `$debug-surefire` in Codex.
Example task
In a local RDF4J practice branch, write a sample test that adds two entries to a list. Ask the skill to stop before its length assertion and report the list size.What to check
At the breakpoint, the size is 2. After continuing, report the actual assertion result and stop the local debugging process.
Original SKILL.md on GitHub · Updated
Frequently asked question
Why is the Java stack empty immediately after connecting?
The test JVM can still be paused during startup. Set a breakpoint in the test method and continue until that code is reached.