Magnetic field measurement is the basic diagnosis to obtain the physical engineering parameters of magnetic confinement fusion device and the macro information of plasma discharge. The real-time diagnosis of magnetic field distribution near the plasma-facing components (PFCs) surface provides the important information on the migration and transport model of key elements. In this work, a remote, in-situ approach for the magnetic field measurement near the surface of PFCs by the polarization-resolved laser-induced breakdown spectroscopy (PRLIBS) based on Zeeman effect is proposed and implemented. The Zeeman characteristics of the emission spectra of laser-induced W, Mo and C plasmas were verified in the laboratory by using different magnetic field configurations. According to the polarization characteristics of the Zeeman sublines of the LIBS spectrum, the intensity and direction of the external local magnetic field were successively identified by using a linear polarizer. Subsequently, a linear array fiber was utilized to determine the polarity of the external magnetic field. And finally, the magnetic field intensity near the lower edge surface of the tungsten baffle of the EAST upper divertor was measured when the field coils were demagnetized. This method can supplement the experimental data near the PFCs for the magnetic field configuration of the magnetic confinement fusion device and provide a reference for the wall element analysis model diagnosed by LIBS.