In this contribution we present the formalism of a recently proposed procedure of continuum discretization for the description of the scattering of weakly bound nuclei. Convergence checks are presented for some relevant sum rules, using as a representative example the deuteron. Finally, we apply the method to the case of deuteron elastic scattering and breakup, comparing the results with those of the standard method of coupled channels continuum discretization.