Temporally and spatially resolved measurements of the electric field distribution in the sheath region of RF and de discharges provide a detailed insight into the sheath and ion dynamics. The electric field is directly related to the sheath ion and electron densities, the sheath voltage, and the displacement current density. Under certain assumptions also the electron and ion conduction current densities at the electrode, the ion current density into the sheath from the plasma bulk, the ion energy distribution function, and the power dissipated in the discharge can be inferred. Furthermore, the electric field distribution can give an indication of the collision-induced conversion between different ion species in the sheath. Laser spectroscopic techniques allow the noninvasive in situ measurement of the electric field with high spatial and temporal resolution. These techniques are based on the spectroscopic measurement of the Stark splining of Rydberg states of helium and hydrogen atoms. Two alternative techniques we applied to RF discharges at 13.56 MHz in helium and hydrogen and a pulsed de discharge in hydrogen. The measured electric field profiles are analyzed, and the results discussed with respect to the ion densities, currents, energies, temporal dynamics and species composition.