surely debit card works the same?

i dont think i got charged with my debit visa card i just didnt think i will get a good exchange rate,but with my nat west credit card i got a very high exchange rate which i wasnt expecting!