Atom Helper using 100% CPU checking repo status, how to debug?


I am seeing an issue where the Atom Helper process repeatedly goes to 100% CPU.

I have narrowed it down to the code in src/git-repository that launches a background task to check the status of the current repository.

How can I attach a debugger to the background Atom Helper that runs the task, so I can inspect the state of what it’s doing?