Exhibit (n)
CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM
We hereby consent to the incorporation by reference in this Registration Statement on Form N-2 of Western Asset Emerging Markets Debt Fund Inc. of our report dated February 20, 2026, relating to the financial statements and financial highlights, which appears in Western Asset Emerging Markets Debt Fund Inc.’s Certified Shareholder Report on Form N-CSR for the year ended December 31, 2025. We also consent to the references to us under the headings “Financial Statements”, “Independent Registered Public Accounting Firm” and “Financial Highlights” in such Registration Statement.
/s/ PricewaterhouseCoopers LLP
Baltimore, Maryland
September 17, 2026