Requires a ST-Link/V2 or ST-Link/V3 device connected to the PC over USB and to the board via the SWD interface. If not already done, Getting-Started#Install-Arduino ...
Generally debugs messages in Arduino is done by Serial.print*, and show in this monitor serial, or another serial tool, as screen, pyserial, coolterm, etc. The Arduino official IDE, not have debugger.