Modify debug code for simplecov