These data are drawn from the International Fiscal Comparisons section of the Fiscal Reference Tables, a compendium of fiscal data published annually by the federal Department of Finance. Data are on a national accounts basis. For Canadian fiscal data on a modified public accounts basis, see the Government Revenue and Expenditure dataset. For the accounting concepts of gross and net public debt, see this primer.
You can download the full dataset here (CSV version).