In present communication analytical and numerical investigations of electromagnetic waves propagation near electron cyclotron resonance surface are presented taking into account variation of both magnetic field and magnetic field direction. Differences from analytical solution for constant magnetic field direction are revealed.