Fix a issue with gathering debug info.