@PWong I have fixed the issue I was having following this link https://stackoverflow.com/questions/53899882/hal-delay-stuck-in-a-infinite-loop.Can you try stepping through the debug and seeing if you are also getting stuck in a HAL infinite loop? If ...
The SWO isn't configured or soldered by default, make sure in cubeMX that the SWO is configured (which it looks like you have done). Then close the solder bridge SB7 and the SWV should work. I had the same issue and this fixed it for me.