Sometimes the terminal will ask Debit or Credit, sometimes it will just prompt for a PIN (meaning it wants to run it as debit) and you can just hit OK and it will run it as credit instead.
Of course if you do that anywhere else, you have to restart the flow.