Debug IP OSPF Packet
Displays the actual packets sent and received by OSPF.
Router#debug ip ospf packet
In this example, OSPF packet debugging is enabled on R2.
R2(config-router)#do debug ip ospf packet
Here are some of the output after turnning on debugging.
Afterwards, here is the command issued to disable all debugging on the router.
R2(config-router)#do un all