I'm going to bet you have the wrong debugger configured.
Go through the debug settings and look for an ST-LINK setting.
That's the one you need.
If this or any post solves your issue, please mark them as 'Accept as Solution' It really helps. And if you notice anything wrong do not hesitate to 'Report Inappropriate Content'. Someone will review it.