To enable OSPF debugging when an OSPF neighborship goes down, the EEM script must monitor for syslog messages indicating the neighborship change and then execute the OSPF debug commands. Option B is the correct script because it includes the event syslog pattern to match the OSPF neighbor down message and the necessary actions to enable debugging.