If you have reached the stage where it is painful to walk, let alone run, then you will need to stop running.
I stopped for two weeks, and then started very very slowly, mixing running with walking in order to build up the muscles, 1 minute run, 1 minute walk that kind of thing.
Rest completely, then build yourself up gradually would be my advice.
Be aware, without a qualified medical diagnosis you may be interpreting this as shin splints when it could be something else.
Your body, your choice, heed advice, not instructions.