That is so frustrating, especially it being a favorite pan. What kind of pan is it?
Cast iron? Stainless? Something else?
I know one of the first things I usually try for stainless pans is to put some soapy
water in the pan and put it on the burner on super, super low heat for awhile. Sometimes this will loosen stuff up
enough it can be scrubbed. If that doesn't work,
ash from the woodstove will usually do it. Often, it'll come off with just scrubbing and if that doesn't do it, I'll sprinkle ashes over the pan, get them just damp and let it sit like that for some hours, then scrub.
If it's cast iron, I usually take a plastic scraper and try to get the worst off. Then, I'll just put some oil and salt in there and scrub. I used to have one of those little chain mail pot scrubbers and that worked nicely.
Hope you're able to get it clean!