In order to detect the particles, i.e. atoms, molecules and/or ions desorbed from the resist layer RES, detectors 115 and 125 are disposed in the vicinity of the substrate W. For example, detectors 115 and 125 can be positioned generally facing the surface of substrate such that the desorbed particles are intercepted by the detector(s) 115 and 125.