how to stop a loop

when doing a big loop
is there a way to stop in the loop to look at some vars for instance ect…

i know the break and copntinue command

but is there an equivalent for pause or stop everything and get out of the program ?

Thanks