What is the best way to debug a ProcessGroup?

Dear all, I want to add some functions to ProcessGroup, what is the best way to debug ProcessGroup for distributed application?