The debugging API does not distinguish between a Java agent and "normal" code. If, for example, you support the sources of your agents in one project, you can set breakpoints as you expect. Then your IDE will simply register the source file names and line numbers in the debug API, as is usually the case.