I've seen how to do it in Visual Studio but how do I do it in PyCharm?
I'm not sure if it's possible to do this, and I'm still investigating it but a useful discovery has been that all pycharm versions following 2020.1.1 can not debug using IronPython. Instead they just hang until killed. See here.