Dogs that are used in wars have helped soldiers in a lot of ways. Before they were just messengers, but developments in training them made them more useful in the battlefield. For instance, they can detect bombs at the distance and can detect problems even before it occurred.
It's a protocol that soldiers can't be emotionally attached to their dog companion while on duty. But this video proves just how it is not possible.