Subprocess testing supports debugging.

Also minor improvements to the JVMTI API and the agent injector.