England staged a successful comeback from two goals down to win the friendly international 3-2.
Toni Kroos opened the scoring in the 43rd minute, and Mario Gomez added the second in the 57th minute.
Tottenham Hotspur striker Harry Kane halved the deficit for England just past the hour mark, and Jamie Vardy equalised on 74 minutes.
Eric Dier, who is having a wonderful season for Tottenham, found the winner in the first minute of injury time.
Former Newcastle striker Shearer was following the match, and he was impressed with Kane and Leicester striker Vardy.
The former England international has special praise for Vardy, who was playing non-league football just a few years ago.