When you're experiencing a severe trial, ask yourself this question: "Am I trying to do what the Lord would have me do?" If you're not, then adjust your course. But if you are, remember the boy outside the walls of Jerusalem who turned to his brothers and said, "I will go and do the things which the Lord hath commanded, for I know that the Lord giveth no commandments unto the children of men, save he shall prepare a way for them that they may accomplish the thing which he commandeth them." (1 Nephi 3:7.)
I bear you my testimony that the Lord will always prepare a way for you to escape from the trials you will be given if you understand two things. One is that you need to be on the Lord's errand. The second thing you need to understand is that the escape will almost never be out of the trial; it will usually be through it. If you pray to have the experience removed altogether, you may not find the way prepared for you. Instead, you need to pray to find the way of deliverance through it. Let me remind you of a beautiful story. One day the prophet Alma encountered a group of people who were going through terrible trials. When he saw how beaten down they were, "he beheld with great joy; for he beheld that their afflictions had truly humbled them, and that they were in a preparation to hear the word." (Alma 32:6.)
Now, if your afflictions truly humble you, then you see that you're in a position to have the Holy Ghost whisper to you-not the way to have your difficulties taken from you, but the way to go through them on your errand for the Lord. If you will be humble and ask God what to do, I promise you that he will always prepare a way for your deliverance.