Inasmuch as I sometimes want to debug (an extended version of) FOP “in place” and without too much setup, I can use this command line to suspend FOP on startup until I attach the debugger:
FOP_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=9000,server=y,suspend=y" fop test.fo test.pdf