use threads instead of processes for testing debugger attachment