Modify debug code