Apply patch, add debugging information.