A new broad-energy, high-resolution gamma ray spectrometer (GRS) with Compton suppression function has been developed recently in the HL-2A tokamak to obtain the gamma ray information in the energy range of 0.1–10 MeV. This is the first time to develop an anti-Compton GRS for a magnetic confinement fusion device. The anticoincidence detector consists of a large-volume high purity germanium (HPGe) crystal (Φ63 × 63 mm2) as the primary detector and eight trapezoidal bismuth germinate (BGO) scintillators (trapezoid crystal with 30 mm thickness) as the secondary detector. The anti-coincidence data processing is implemented by a digital-based data acquisition system with fast digitization and software signal processing technology. Using radioisotope gamma ray sources and Monte Carlo N-Particle code, the energy and efficiency of the spectrometer have been calibrated and quantitatively tested. The Compton continuum suppression factor reaches 4.2, and the energy resolution (Full Width at Half Maximum) of the 1.332 MeV full energy peak for 60Co is 2.1 keV. Measurements of gamma ray spectra with Compton suppression using the spectrometer have been successfully performed during HL-2A discharges with different conditions. The performance of the spectrometer and the first experimental results are presented in this paper.