How to Debug Blue Pill Code in Arduino IDE?

A post was split to a new topic: Suggestions for library for STM32 (STM32F1) and supports multiple ENC28J60 modules?