If you are in a great deal of debt but want to save for an emergency fund, you should

Save for the fund while paying down your debt

pay down your debt first

consider getting a second job to pay down your debt first

consider getting a second job, and save that job's money, and then pay down your debt