Resolve pull runtime error by adding debug.log